WPDev.one
Core Class

WP_Users_List_Table

class WP_Users_List_Table // Constructor: function Object() { [native code] }

Core class used to implement displaying users in a list table.

Methods 14 methods

Method / Return Description
__construct()
void

Constructor.

Parameters: $args: mixed
ajax_user_can()
bool

Checks the current user's permissions.

prepare_items()
void

Prepares the users list for display.

no_items()
void

Outputs 'no users' message.

get_views()
string[]

Returns an associative array listing all the views that can be used

get_bulk_actions()
array

Retrieves an associative array of bulk actions available on this table.

extra_tablenav()
void

Outputs the controls to allow user roles to be changed in bulk.

Parameters: $which: mixed
current_action()
string

Captures the bulk action required, and return it.

get_columns()
string[]

Gets a list of columns for the list table.

get_sortable_columns()
array

Gets a list of sortable columns for the list table.

display_rows()
void

Generates the list table rows.

single_row()
string

Generates HTML for a single row on the users.php admin panel.

Parameters: $user_object: mixed, $style: mixed, $role: mixed, $numposts: mixed
get_default_primary_column_name()
string

Gets the name of the default primary column.

get_role_list()
string[]

Returns an array of translated user role names for a given user object.

Parameters: $user_object: mixed

Properties

Property / Type Description
$site_id
mixed
public
No description available.
$is_site_users
mixed
public
No description available.

Class Information

Since Version
3.1.0
Source File
wp-admin/includes/class-wp-users-list-table.php
Advertisement