collector->get_data(); if ( empty( $data->current_screen ) ) { return; } $this->before_non_tabular_output(); echo '
'; echo '

get_current_screen()

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; foreach ( get_object_vars( $data->current_screen ) as $key => $value ) { echo ''; echo ''; echo ''; echo ''; } echo ''; echo '
' . esc_html__( 'Property', 'query-monitor' ) . '' . esc_html__( 'Value', 'query-monitor' ) . '
' . esc_html( $key ) . '' . esc_html( $value ) . '
'; echo '
'; echo '
'; echo '

' . esc_html__( 'Globals', 'query-monitor' ) . '

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $admin_globals = array( 'pagenow', 'typenow', 'taxnow', 'hook_suffix', ); foreach ( $admin_globals as $key ) { echo ''; echo ''; echo ''; echo ''; } echo ''; echo '
' . esc_html__( 'Global Variable', 'query-monitor' ) . '' . esc_html__( 'Value', 'query-monitor' ) . '
$' . esc_html( $key ) . '' . esc_html( $data->{$key} ) . '
'; echo '
'; if ( ! empty( $data->list_table ) ) { echo '
'; echo '

' . esc_html__( 'List Table', 'query-monitor' ) . '

'; if ( ! empty( $data->list_table['class_name'] ) ) { echo '

' . esc_html__( 'Class:', 'query-monitor' ) . '

'; echo '

' . esc_html( $data->list_table['class_name'] ) . '

'; } echo '

' . esc_html__( 'Column Filters:', 'query-monitor' ) . '

'; echo '

' . esc_html( $data->list_table['columns_filter'] ) . '

'; echo '

' . esc_html( $data->list_table['sortables_filter'] ) . '

'; echo '

' . esc_html__( 'Column Action:', 'query-monitor' ) . '

'; echo '

' . esc_html( $data->list_table['column_action'] ) . '

'; echo '
'; } $this->after_non_tabular_output(); } } /** * @param array $output * @param QM_Collectors $collectors * @return array */ function register_qm_output_html_admin( array $output, QM_Collectors $collectors ) { if ( ! is_admin() ) { return $output; } $collector = QM_Collectors::get( 'response' ); if ( $collector ) { $output['response'] = new QM_Output_Html_Admin( $collector ); } return $output; } add_filter( 'qm/outputter/html', 'register_qm_output_html_admin', 70, 2 );