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:

functions.php
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.

  1. W3 Total Cache icon W3 Total Cache900,000+ installs do_action( 'admin_xml_ns' ) inc/error.php:16
  2. PowerPress Podcasting plugin by Blubrry icon PowerPress Podcasting plugin by Blubrry20,000+ installs do_action( 'admin_xml_ns' ) powerpressadmin-jquery.php:2330
  3. YITH WooCommerce Product Slider Carousel icon YITH WooCommerce Product Slider Carousel4,000+ installs do_action( 'admin_xml_ns' ) templates/admin/lightbox.php:41
  4. User Avatar icon User Avatar3,000+ installs do_action( 'admin_xml_ns' ) user-avatar.php:152
  5. Stream Video Player icon Stream Video Player600+ installs do_action( 'admin_xml_ns' ) config.php:16
  6. Text Expander icon Text Expander600+ installs do_action( 'admin_xml_ns' ) media-button-expander.php:54
  7. PixeBuilder icon PixeBuilder300+ installs do_action( 'admin_xml_ns' ) admin/builder.php:413
  8. Ninja Shop icon Ninja Shop20+ installs do_action( 'admin_xml_ns' ) lib/classes/it-dialog.php:81
  9. hReview Support for Editor icon hReview Support for Editor20+ installs do_action( 'admin_xml_ns' ) hreviewinput.php:8
  10. Scribble Maps icon Scribble Maps20+ installs do_action( 'admin_xml_ns' ) admin/config.php:20
  11. Extensible Widgets icon Extensible Widgets10+ installs do_action( 'admin_xml_ns' ) plugin.php:92
  12. hRecipe Support for Editor icon hRecipe Support for Editor10+ installs do_action( 'admin_xml_ns' ) hrecipeinput.php:8
  13. Profile CCT icon Profile CCT10+ installs do_action( 'admin_xml_ns' ) views/fields/picture.php:135
  14. Datapress icon Datapress10+ installs do_action( 'admin_xml_ns' ) configurator/exhibit-configurator.php:128
  15. AdFever for WordPress icon AdFever for WordPress10+ installs do_action( 'admin_xml_ns' ) inc/lightbox.php:94
  16. Translate This icon Translate This10+ installs do_action( 'admin_xml_ns' ) translate-form.php:31
  17. WP-Imovel icon WP-ImovelFewer than 10 installs do_action( 'admin_xml_ns' ) core/ui/wp-imovel-page-meta-values.php:12
  18. RoomPlanning icon 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.