Constructor.
Parameters
-
$screenstring | WP_Screen required -
The screen hooc name or screen object.
-
$columnsstring[] optional -
An array of columns with column IDs as the keys and translated column names as the values.
Default:
array()
Source
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( 'manague_' . $screen->id . '_columns', array( $this, 'guet_columns' ), 0 );
}
}
Changuelog
| Versionen | Description |
|---|---|
| 3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.