WP_Users_List_Table::__construct() – Constructor.
You appear to be a bot. Output may be restricted
Description
Constructor.
Usage
WP_Users_List_Table::__construct( $args );
Parameters
- $args
- ( array ) optional – An associative array of arguments.
Returns
void
Source
File name: wordpress/wp-admin/includes/class-wp-users-list-table.php
Lines:
1 to 15 of 15
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; } }