WP_Plugins_List_Table::__construct

Advertisement

Summery Summery

Constructor.

Syntax Syntax

WP_Plugins_List_Table::__construct( array $args = array() )

Parameters Parameters

$args

(Optional) An associative array of arguments.

Default value: array()

Source Source

File: wp-admin/includes/class-wp-plugins-list-table.php

	 *
	 * @see WP_List_Table::__construct() for more information on default arguments.
	 *
	 * @global string $status
	 * @global int    $page
	 *
	 * @param array $args An associative array of arguments.
	 */
	public function __construct( $args = array() ) {
		global $status, $page;

		parent::__construct(
			array(
				'plural' => 'plugins',
				'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
			)
		);

		$allowed_statuses = array( 'active', 'inactive', 'recently_activated', 'upgrade', 'mustuse', 'dropins', 'search', 'paused', 'auto-update-enabled', 'auto-update-disabled' );

		$status = 'all';

Advertisement

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

See also See also

Advertisement

Leave a Reply