_WP_List_Table_Compat::__construct() –

You appear to be a bot. Output may be restricted

Description

Constructor.

Usage

_WP_List_Table_Compat::__construct( $screen, $columns );

Parameters

$screen
( string|WP_Screen ) required – The screen hook name or screen object.
$columns
( string[] ) optional – An array of columns with column IDs as the keys and translated column names as the values.

Returns

void

Source

File name: wordpress/wp-admin/includes/class-wp-list-table-compat.php
Lines:

1 to 12 of 12
  public function __construct( $screen, $columns = array() ) {
    if ( is_string( $screen ) ) {
      $screen = convert_to_screen( $screen );
    }

    $this->_screen = $screen;

    if ( ! empty( $columns ) ) {
      $this->_columns = $columns;
      add_filter( 'manage_' . $screen->id . '_columns', array( $this, 'get_columns' )  <, 0 );
    }
  }
 

 View on GitHub View on Trac