WP_Users_List_Table::__construct()publicWP 3.1.0

Constructor.

Method of the class: WP_Users_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Notes

Changelog

Since 3.1.0 Introduced.

WP_Users_List_Table::__construct() code WP 6.6.2

public function __construct( $args = array() ) {
	parent::__construct(
		array(
			'singular' => 'user',
			'plural'   => 'users',
			'screen'   => isset( $args['screen'] ) ? $args['screen'] : null,
		)
	);

	$this->is_site_users = 'site-users-network' === $this->screen->id;

	if ( $this->is_site_users ) {
		$this->site_id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;
	}
}