/home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/classes
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/classes/Hook.php (1379B)
,
* components: array
,
* }
*/
public static function process( $name, string $type, ?WP_Hook $hook, $hide_qm = false, $hide_core = false ) {
$actions = array();
$components = array();
if ( $hook ) {
foreach ( $hook as $priority => $callbacks ) {
foreach ( $callbacks as $cb ) {
$callback = QM_Util::determine_callback( $cb );
if ( isset( $callback->component ) ) {
if (
( $hide_qm && 'query-monitor' === $callback->component->context )
|| ( $hide_core && 'core' === $callback->component->context )
) {
continue;
}
$components[ $callback->component->get_id() ] = $callback->component;
}
$actions[] = array(
'priority' => $priority,
'callback' => $callback,
);
}
}
}
return array(
'name' => $name,
'type' => $type,
'actions' => $actions,
'components' => $components,
);
}
}