WordPress action hook · part of WordPress core
admin_xml_ns
A WordPress core action that 18 plugins also fire themselves, running on 929K+ sites between them.
How to use admin_xml_ns
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'admin_xml_ns', function() {
// Your code runs here.
}, 10, 1 );Argument names come from W3 Total Cache's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
18 plugins that fire admin_xml_ns
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
W3 Total Cache900,000+ installs
do_action( 'admin_xml_ns' )inc/error.php:16 -
PowerPress Podcasting plugin by Blubrry20,000+ installs
do_action( 'admin_xml_ns' )powerpressadmin-jquery.php:2330 -
YITH WooCommerce Product Slider Carousel4,000+ installs
do_action( 'admin_xml_ns' )templates/admin/lightbox.php:41 -
User Avatar3,000+ installs
do_action( 'admin_xml_ns' )user-avatar.php:152 -
Stream Video Player600+ installs
do_action( 'admin_xml_ns' )config.php:16 -
Text Expander600+ installs
do_action( 'admin_xml_ns' )media-button-expander.php:54 -
PixeBuilder300+ installs
do_action( 'admin_xml_ns' )admin/builder.php:413 -
Ninja Shop20+ installs
do_action( 'admin_xml_ns' )lib/classes/it-dialog.php:81 -
hReview Support for Editor20+ installs
do_action( 'admin_xml_ns' )hreviewinput.php:8 -
Scribble Maps20+ installs
do_action( 'admin_xml_ns' )admin/config.php:20 -
Extensible Widgets10+ installs
do_action( 'admin_xml_ns' )plugin.php:92 -
hRecipe Support for Editor10+ installs
do_action( 'admin_xml_ns' )hrecipeinput.php:8 -
Profile CCT10+ installs
do_action( 'admin_xml_ns' )views/fields/picture.php:135 -
Datapress10+ installs
do_action( 'admin_xml_ns' )configurator/exhibit-configurator.php:128 -
AdFever for WordPress10+ installs
do_action( 'admin_xml_ns' )inc/lightbox.php:94 -
Translate This10+ installs
do_action( 'admin_xml_ns' )translate-form.php:31 -
WP-ImovelFewer than 10 installs
do_action( 'admin_xml_ns' )core/ui/wp-imovel-page-meta-values.php:12 -
RoomPlanningFewer than 10 installs
do_action( 'admin_xml_ns' )php/tinymce/generator.php:15
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.