print_column_headers

Prints column headers for a particular screen.

Description

print_column_headers( (string|WP_Screen) $screen, (bool) $with_id = true ); 

Parameters (2)

0. $screen (string|WP_Screen)
The screen hook name or screen object.
1. $with_id — Optional. (bool) => true
Whether to set the id attribute or not.

Usage

  1. if ( !function_exists( 'print_column_headers' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/list-table.php'; 
  3.  
  4. // The screen hook name or screen object. 
  5. $screen = null; 
  6.  
  7. // Whether to set the id attribute or not. 
  8. $with_id = true; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = print_column_headers($screen, $with_id); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/list-table.php  
  1. function print_column_headers( $screen, $with_id = true ) { 
  2. $wp_list_table = new _WP_List_Table_Compat($screen); 
  3.  
  4. $wp_list_table->print_column_headers( $with_id );