| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
List Table API: WP_MS_Users_List_Table class
| File Size: | 620 lines (18 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
WP_MS_Users_List_Table:: (21 methods):
ajax_user_can()
prepare_items()
get_bulk_actions()
no_items()
get_views()
pagination()
get_columns()
get_sortable_columns()
column_cb()
column_id()
column_username()
column_name()
column_email()
column_registered()
_column_blogs()
column_blogs()
column_default()
display_rows()
get_default_primary_column_name()
handle_row_actions()
get_primary_column_aria_label()
Class: WP_MS_Users_List_Table - X-Ref
Core class used to implement displaying users in a list table for the network admin.| ajax_user_can() X-Ref |
| Checks if the current user has permissions to perform an Ajax action. return: bool Whether the current user can perform an Ajax action. |
| prepare_items() X-Ref |
| Prepares the users list for display. |
| get_bulk_actions() X-Ref |
| Gets the available bulk actions for the users list table. return: array<string, string> Bulk action labels keyed by action name. |
| no_items() X-Ref |
| Displays a message when there are no items. |
| get_views() X-Ref |
| Gets the list of views (all, super admin) available for the users list table. return: array<string, string> View link markup keyed by view name ('all' or 'super'). |
| pagination( $which ) X-Ref |
| Generates the list table pagination. param: string $which The location of the pagination: Either 'top' or 'bottom'. |
| get_columns() X-Ref |
| Gets the list of columns for the users list table. return: array<string, string> Array of column titles keyed by their column name. |
| get_sortable_columns() X-Ref |
| Gets the list of sortable columns for the users list table. return: array<string, array<int, string|bool>> Sortable columns. |
| column_cb( $item ) X-Ref |
| Handles the checkbox column output. param: WP_User $item The current WP_User object. |
| column_id( $user ) X-Ref |
| Handles the ID column output. param: WP_User $user The current WP_User object. |
| column_username( $user ) X-Ref |
| Handles the username column output. param: WP_User $user The current WP_User object. |
| column_name( $user ) X-Ref |
| Handles the name column output. param: WP_User $user The current WP_User object. |
| column_email( $user ) X-Ref |
| Handles the email column output. param: WP_User $user The current WP_User object. |
| column_registered( $user ) X-Ref |
| Handles the registered date column output. param: WP_User $user The current WP_User object. |
| _column_blogs( $user, $classes, $data, $primary ) X-Ref |
| Outputs the sites column content. param: WP_User $user The current WP_User object. param: string $classes CSS classes for the cell. param: string $data Custom data attributes for the cell. param: string $primary The primary column name. |
| column_blogs( $user ) X-Ref |
| Handles the sites column output. param: WP_User $user The current WP_User object. |
| column_default( $item, $column_name ) X-Ref |
| Handles the default column output. param: WP_User $item The current WP_User object. param: string $column_name The current column name. |
| display_rows() X-Ref |
| Generates the list table rows. |
| get_default_primary_column_name() X-Ref |
| Gets the name of the default primary column. return: string Name of the default primary column, in this case, 'username'. |
| handle_row_actions( $item, $column_name, $primary ) X-Ref |
| Generates and displays row action links. param: WP_User $item User being acted upon. param: string $column_name Current column name. param: string $primary Primary column name. return: string Row actions output for users in Multisite, or an empty string |
| get_primary_column_aria_label( $user ) X-Ref |
| Returns a clean label for the primary (Username) column's row header `aria-label`. Provides screen readers with just the user login as the row header name, preventing them from computing the name from the full cell content. param: WP_User $user The current WP_User object. return: string The user login. |
| Generated : Mon Oct 26 08:20:34 2026 | Cross-referenced by PHPXref |