collector->get_data(); $name = __( 'Hooks & Actions', 'query-monitor' ); if ( $data->all_hooks ) { $name = __( 'Hooks, Actions, & Filters', 'query-monitor' ); } return $name; } /** * @return void */ public function output() { /** @var QM_Data_Hooks */ $data = $this->collector->get_data(); if ( empty( $data->hooks ) ) { return; } $this->before_tabular_output(); $callback_label = __( 'Action', 'query-monitor' ); $th_type = ''; if ( $data->all_hooks ) { $callback_label = __( 'Callback', 'query-monitor' ); $th_type = '
' . esc_html( $hook['name'] ) . '
';
if ( 'all' === $hook['name'] ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo 'all
'
);
echo '';
}
echo '' . esc_html( $action['callback']['name'] ) . '
';
if ( isset( $action['callback']['error'] ) ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo '' . esc_html( $hook['name'] ) . '
';
echo '