WordPress at Your Fingertips
function is not described

WP_Users_List_Table::__construct() public WP 3.1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

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.

Code of WP_Users_List_Table::__construct() WP 5.8.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;
	}
}