WordPress action hook

qm/stop

Fired by 11 WordPress plugins, running on 100K+ sites between them.

“Query Monitor profiling”

How to use qm/stop

It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'qm/stop', function( $arg1 ) {
	// Your code runs here.
}, 10, 1 );

Argument names come from Zu Media's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

11 plugins that fire qm/stop

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Orphans icon Orphans50,000+ installs do_action( 'qm/stop', 'orphans_indicator_options' ) etc/options.php:433
  2. NotificationX icon NotificationX30,000+ installs do_action( 'qm/stop', __METHOD__ ) includes/Extensions/GlobalFields.php:2442
  3. Product Table & List Builder for WooCommerce icon Product Table & List Builder for WooCommerce10,000+ installs do_action( 'qm/stop', 'product table id: ' . $atts['id'] ) main.php:3793
  4. CM Tooltip Glossary icon CM Tooltip Glossary7,000+ installs do_action( 'qm/stop', 'cmtt_index_getting_terms' ) glossaryIndex.php:1100
  5. Vimeotheque icon Vimeotheque2,000+ installs do_action( 'qm/stop', 'Vimeotheque Lite' ) main.php:48
  6. AnWP Football Leagues icon AnWP Football Leagues600+ installs do_action( 'qm/stop', $label ) includes/class-anwpfl-template.php:298
  7. Taxonomy/Term and Role-based Discounts for WooCommerce icon Taxonomy/Term and Role-based Discounts for WooCommerce200+ installs do_action( 'qm/stop', 'WC_Taxonomy_Discounts_Webdados::get_discount_rules' ) includes/class-wc-taxonomy-discounts-webdados.php:523
  8. Bottle icon Bottle100+ installs do_action( 'qm/stop', 'tail' ) admin/bottle-admin-utils.php:340
  9. DataPress (Dataverse Integration) icon DataPress (Dataverse Integration)80+ installs do_action( 'qm/stop', 'icds/init' ) integration-cds.php:140
  10. Zu Media icon Zu MediaFewer than 10 installs do_action( 'qm/stop', $this->get_profile_timer($context) ) zukit/traits/logging.php:122
  11. Zu Contact icon Zu ContactFewer than 10 installs do_action( 'qm/stop', $this->get_profile_timer($context) ) zukit/traits/logging.php:122

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.