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:
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.
-
Query Monitor200,000+ installs
do_action( 'qm/info', $message, $context )classes/QM.php:126 -
Clarity2,000+ installs
do_action( 'qm/info', __( 'Debug mode enabled, using local definitions', 'clarity-ad-blocker' ) )clarity-ad-blocker.php:103 -
Knit Pay2,000+ installs
do_action( 'qm/info', $a )include.php:129 -
FluentC20+ installs
do_action( 'qm/info', 'FluentC Site setup post completed' )src/services/class-connect.php:410 -
Rest Client TAP20+ installs
do_action( 'qm/info', 'Requesting result from api: {url}', ['url' => $url] )public/class-rest-client-tap-public.php:193 -
{eac}ObjectCache20+ installs
do_action( 'qm/info', $log )src/object-cache.php:2633 -
WP Engine Smart Search AI10+ installs
do_action( 'qm/info', $message )helper/search/abstract-search-option-resolver.php:83 -
Anti-Cache Kit10+ installs
do_action( 'qm/info', 'Anti-Cache Kit: maintenance mode ' . ( $new_mode ? 'enabled' : 'disabled' ) )includes/admin.php:374 -
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 -
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.