/home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/collectors
NameSizeModeActions
admin.php35020644editdlrm
assets_scripts.php12420644editdlrm
assets_styles.php10820644editdlrm
block_editor.php66790644editdlrm
cache.php35380644editdlrm
caps.php65700644editdlrm
conditionals.php28030644editdlrm
db_callers.php7520644editdlrm
db_components.php7710644editdlrm
db_dupes.php7330644editdlrm
db_queries.php79000644editdlrm
debug_bar.php27910644editdlrm
doing_it_wrong.php93740644editdlrm
environment.php87560644editdlrm
hooks.php17230644editdlrm
http.php168010644editdlrm
languages.php77320644editdlrm
logger.php75060644editdlrm
multisite.php16560644editdlrm
overview.php59210644editdlrm
php_errors.php134760644editdlrm
raw_request.php25490644editdlrm
redirects.php13650644editdlrm
request.php67900644editdlrm
theme.php184690644editdlrm
timing.php43870644editdlrm
transients.php28920644editdlrm
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/collectors/admin.php (3502B)
*/ class QM_Collector_Admin extends QM_DataCollector { public $id = 'admin'; public function get_storage(): QM_Data { return new QM_Data_Admin(); } /** * @return array */ public function get_concerned_actions() { $actions = array( 'current_screen', 'admin_init', 'admin_menu', 'admin_notices', 'all_admin_notices', 'in_admin_header', 'network_admin_notices', 'user_admin_notices', ); if ( ! empty( $this->data->list_table ) ) { $actions[] = $this->data->list_table['column_action']; } return $actions; } /** * @return array */ public function get_concerned_filters() { $filters = array( 'admin_body_class', ); if ( ! empty( $this->data->list_table ) ) { $filters[] = $this->data->list_table['columns_filter']; $filters[] = $this->data->list_table['sortables_filter']; } return $filters; } /** * @return void */ public function process() { /** * @var string $pagenow * @var ?WP_List_Table $wp_list_table */ global $pagenow, $wp_list_table; $this->data->pagenow = $pagenow; $this->data->typenow = $GLOBALS['typenow'] ?? ''; $this->data->taxnow = $GLOBALS['taxnow'] ?? ''; $this->data->hook_suffix = $GLOBALS['hook_suffix'] ?? ''; $this->data->current_screen = get_current_screen(); $screens = array( 'edit' => true, 'edit-comments' => true, 'edit-tags' => true, 'link-manager' => true, 'plugins' => true, 'plugins-network' => true, 'sites-network' => true, 'themes-network' => true, 'upload' => true, 'users' => true, 'users-network' => true, ); if ( empty( $this->data->current_screen ) || ! isset( $screens[ $this->data->current_screen->base ] ) ) { return; } # And now, WordPress' legendary inconsistency comes into play: $columns = $this->data->current_screen->id; $sortables = $this->data->current_screen->id; $column = $this->data->current_screen->base; if ( ! empty( $this->data->current_screen->taxonomy ) ) { $column = $this->data->current_screen->taxonomy; } elseif ( ! empty( $this->data->current_screen->post_type ) ) { $column = $this->data->current_screen->post_type . '_posts'; } if ( ! empty( $this->data->current_screen->post_type ) && empty( $this->data->current_screen->taxonomy ) ) { $columns = $this->data->current_screen->post_type . '_posts'; } if ( 'edit-comments' === $column ) { $column = 'comments'; } elseif ( 'upload' === $column ) { $column = 'media'; } elseif ( 'link-manager' === $column ) { $column = 'link'; } $list_table_data = array( 'columns_filter' => "manage_{$columns}_columns", 'sortables_filter' => "manage_{$sortables}_sortable_columns", 'column_action' => "manage_{$column}_custom_column", ); if ( ! empty( $wp_list_table ) ) { $list_table_data['class_name'] = get_class( $wp_list_table ); } $this->data->list_table = $list_table_data; } } /** * @param array $collectors * @param QueryMonitor $qm * @return array */ function register_qm_collector_admin( array $collectors, QueryMonitor $qm ) { $collectors['admin'] = new QM_Collector_Admin(); return $collectors; } if ( is_admin() ) { add_filter( 'qm/collectors', 'register_qm_collector_admin', 10, 2 ); }