WordPress at Your Fingertips
function is not described

WP_Media_List_Table::__construct() public WP 3.1.0

Constructor.

{} It's a method of the class: WP_Media_List_Table{}

No Hooks.

Return

null. Nothing.

Usage

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

Notes

Changelog

Since 3.1.0 Introduced.

Code of WP_Media_List_Table::__construct() WP 5.8.2

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,
		)
	);
}