WordPress action hook

qm/info

Fired by 10 WordPress plugins, running on 204K+ sites between them.

“Fires when an `info` level message is logged.”

How to use qm/info

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

functions.php
add_action( 'qm/info', function( $message, $context ) {
	// Your code runs here.
}, 10, 2 );

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

10 plugins that fire qm/info

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

  1. Query Monitor icon Query Monitor200,000+ installs do_action( 'qm/info', $message, $context ) classes/QM.php:126
  2. Clarity icon Clarity2,000+ installs do_action( 'qm/info', __( 'Debug mode enabled, using local definitions', 'clarity-ad-blocker' ) ) clarity-ad-blocker.php:103
  3. Knit Pay icon Knit Pay2,000+ installs do_action( 'qm/info', $a ) include.php:129
  4. FluentC icon FluentC20+ installs do_action( 'qm/info', 'FluentC Site setup post completed' ) src/services/class-connect.php:410
  5. Rest Client TAP icon Rest Client TAP20+ installs do_action( 'qm/info', 'Requesting result from api: {url}', ['url' => $url] ) public/class-rest-client-tap-public.php:193
  6. {eac}ObjectCache icon {eac}ObjectCache20+ installs do_action( 'qm/info', $log ) src/object-cache.php:2633
  7. WP Engine Smart Search AI icon WP Engine Smart Search AI10+ installs do_action( 'qm/info', $message ) helper/search/abstract-search-option-resolver.php:83
  8. Anti-Cache Kit icon Anti-Cache Kit10+ installs do_action( 'qm/info', 'Anti-Cache Kit: maintenance mode ' . ( $new_mode ? 'enabled' : 'disabled' ) ) includes/admin.php:374
  9. PraisonAI Git Posts icon PraisonAI Git PostsFewer than 10 installs do_action( 'qm/info', sprintf( '[PraisonPress] ✅ HEADLESS: Serving %d post(s) from Git files (post_type=%s, slug=%s)', count($file_posts), $post_type, $query->get('name') ?: 'archive' ) ) src/Core/Bootstrap.php:489
  10. Course Booking System Extension icon Course Booking System ExtensionFewer than 10 installs do_action( 'qm/info', 'saveFields' ) src/Admin/MpEventTagAutoGeneration.php:46

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.