/home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/output/html
NameSizeModeActions
admin.php11300644editdlrm
assets.php19900644editdlrm
assets_scripts.php12940644editdlrm
assets_styles.php12800644editdlrm
block_editor.php15390644editdlrm
cache.php9180644editdlrm
caps.php13400644editdlrm
conditionals.php21300644editdlrm
db_callers.php16780644editdlrm
db_components.php17420644editdlrm
db_dupes.php20610644editdlrm
db_queries.php48570644editdlrm
debug_bar.php22400644editdlrm
doing_it_wrong.php21040644editdlrm
environment.php11340644editdlrm
headers.php17380644editdlrm
hooks.php64140644editdlrm
http.php21050644editdlrm
languages.php13810644editdlrm
logger.php23170644editdlrm
multisite.php10800644editdlrm
overview.php23800644editdlrm
php_errors.php42560644editdlrm
request.php10950644editdlrm
theme.php23920644editdlrm
timing.php19050644editdlrm
transients.php15430644editdlrm
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/output/html/hooks.php (6414B)
collector->get_data(); $name = __( 'Hooks & Actions', 'query-monitor' ); if ( $data->all_hooks ) { $name = __( 'Hooks, Actions, & Filters', 'query-monitor' ); } return $name; } /** * @param array, * actions: list, * }> $hooks * @param bool $all_hooks * @return void */ public static function output_hook_table( array $hooks, bool $all_hooks ) { $core = __( 'WordPress Core', 'query-monitor' ); foreach ( $hooks as $hook ) { $row_attr = array(); $row_attr['data-qm-name'] = implode( ' ', $hook['parts'] ); $row_attr['data-qm-component'] = implode( ' ', wp_list_pluck( $hook['components'], 'name' ) ); $row_attr['data-qm-type'] = $hook['type']; if ( QM_Component::has_non_core( $hook['components'] ) ) { $row_attr['data-qm-component'] .= ' non-core'; } $attr = ''; if ( ! empty( $hook['actions'] ) ) { $rowspan = count( $hook['actions'] ); } else { $rowspan = 1; } foreach ( $row_attr as $a => $v ) { $attr .= ' ' . $a . '="' . esc_attr( $v ) . '"'; } if ( ! empty( $hook['actions'] ) ) { $first = true; foreach ( $hook['actions'] as $action ) { $component = ''; $subject = ''; if ( isset( $action['callback']->component ) ) { $component = $action['callback']->component->name; $subject = $component; } if ( $core !== $component ) { $subject .= ' non-core'; } printf( // WPCS: XSS ok. '', esc_attr( $subject ), $attr ); if ( $first ) { echo ''; echo '' . esc_html( $hook['name'] ) . ''; if ( 'all' === $hook['name'] ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
' . QueryMonitor::icon( 'warning' ); printf( /* translators: %s: Action name */ esc_html__( 'Warning: The %s action is extremely resource intensive. Try to avoid using it.', 'query-monitor' ), 'all' ); echo ''; } echo '
'; if ( $all_hooks ) { $type = ( 'action' === $hook['type'] ) ? __( 'Action', 'query-monitor' ) : __( 'Filter', 'query-monitor' ); echo '' . esc_html( $type ) . ''; } } if ( isset( $action['callback']->error ) ) { $class = ' qm-warn'; } else { $class = ''; } echo ''; echo esc_html( (string) $action['priority'] ); if ( PHP_INT_MAX === $action['priority'] ) { echo ' (PHP_INT_MAX)'; } elseif ( PHP_INT_MIN === $action['priority'] ) { echo ' (PHP_INT_MIN)'; } elseif ( -PHP_INT_MAX === $action['priority'] ) { echo ' (-PHP_INT_MAX)'; } echo ''; if ( isset( $action['callback']->file ) ) { echo ''; echo self::build_toggler(); // WPCS: XSS ok; echo '
    '; echo '
  1. '; echo self::output_filename( $action['callback']->name, $action['callback']->file, $action['callback']->line ); // WPCS: XSS ok. echo '
  2. '; echo '
'; } else { echo ''; $cb = $action['callback']; if ( 'closure' === $cb->callback_type ) { $cb_name = sprintf( /* translators: A closure is an anonymous PHP function. 1: Line number, 2: File name */ __( 'Closure on line %1$d of %2$s', 'query-monitor' ), $cb->line, $cb->file ? QM_Util::standard_dir( $cb->file, '' ) : '' ); } elseif ( 'unknown_closure' === $cb->callback_type ) { /* translators: A closure is an anonymous PHP function */ $cb_name = __( 'Unknown closure', 'query-monitor' ); } else { $cb_name = $cb->name ?? ''; } echo '' . esc_html( $cb_name ) . ''; if ( isset( $action['callback']->error ) ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
' . QueryMonitor::icon( 'warning' ); echo esc_html( sprintf( /* translators: %s: Error message text */ __( 'Error: %s', 'query-monitor' ), $action['callback']->error->get_error_message() ) ); } echo ''; } echo ''; echo esc_html( $component ); echo ''; echo ''; $first = false; } } else { echo ""; // WPCS: XSS ok. echo ''; echo '' . esc_html( $hook['name'] ) . ''; echo ''; echo ''; echo ''; echo ''; if ( $all_hooks ) { echo ''; } echo ''; } } } } /** * @param array $output * @param QM_Collectors $collectors * @return array */ function register_qm_output_html_hooks( array $output, QM_Collectors $collectors ) { $collector = QM_Collectors::get( 'hooks' ); if ( $collector ) { $output['hooks'] = new QM_Output_Html_Hooks( $collector ); } return $output; } add_filter( 'qm/outputter/html', 'register_qm_output_html_hooks', 80, 2 );