WP_Users_List_Table::ajax_user_can() – Check the current user’s permissions.
You appear to be a bot. Output may be restricted
Description
Check the current user's permissions.
Usage
$bool = WP_Users_List_Table::ajax_user_can();
Parameters
Returns
bool
Source
File name: wordpress/wp-admin/includes/class-wp-users-list-table.php
Lines:
1 to 7 of 7
public function ajax_user_can() { if ( $this->is_site_users ) { return current_user_can( 'manage_sites' ); } else { return current_user_can( 'list_users' ); } }