2025-04-25 00:10:45 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Insert this snippet in WP_Hook::apply_filters()
|
|
|
|
*
|
|
|
|
* wp-includes/class-wp-hook.php:328
|
|
|
|
*/
|
|
|
|
|
|
|
|
global $wp_filter;
|
2025-04-25 17:07:49 +02:00
|
|
|
// EDIT filter name here!
|
2025-04-25 00:10:45 +02:00
|
|
|
$_do_debug_filter = ($wp_filter['wp_head'] ?? null) === $this;
|
|
|
|
if ($_do_debug_filter) do_action('qm/start', 'filter');
|
|
|
|
|
|
|
|
// foreach ( $this->callbacks[ $priority ] as $the_ ) {
|
|
|
|
// call_user_func calls ...
|
|
|
|
|
2025-04-25 09:08:19 +02:00
|
|
|
if ($_do_debug_filter)
|
|
|
|
do_action('qm/lap', 'filter', QM_Util::populate_callback(['function' => $the_['function']])['name'] ?? 'N/A');
|
2025-04-25 00:10:45 +02:00
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
if ($_do_debug_filter) do_action('qm/stop', 'filter');
|