WordPress at a glance
function is not described

WP_Media_List_Table::__construct() WP 3.1.0

Constructor.

This is a method of the class: WP_Media_List_Table

No Hooks.

Return

Null. Nothing.

Usage

$WP_Media_List_Table = new WP_Media_List_Table();
$var = $WP_Media_List_Table->__construct( $args );
$args(array)
An associative array of arguments.
Default: array()

Notes

  • See: WP_List_Table::__construct() for more information on default arguments.

Changelog

Since 3.1.0 Introduced.

Code of WP Media List Table:: construct: wp-admin/includes/class-wp-media-list-table.php WP 5.2.2

<?php
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' => isset( $args['screen'] ) ? $args['screen'] : null,
		)
	);
}