WP_Media_List_Table::__construct
Constructor.
Метод класса: WP_Media_List_Table{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Media_List_Table = new WP_Media_List_Table(); $WP_Media_List_Table->__construct( $args );
- $args(массив)
- An associative array of arguments.
По умолчанию:array()
Заметки
- Смотрите: WP_List_Table::__construct() for more information on default arguments.
Список изменений
| С версии 3.1.0 | Введена. |
Код WP_Media_List_Table::__construct() WP Media List Table:: construct WP 7.0
public function __construct( $args = array() ) {
$this->detached = ( isset( $_REQUEST['attachment-filter'] ) && 'detached' === $_REQUEST['attachment-filter'] );
$this->modes = array(
'list' => __( 'List view' ),
'grid' => __( 'Grid view' ),
);
parent::__construct(
array(
'plural' => 'media',
'screen' => $args['screen'] ?? null,
)
);
}