WordPress at Your Fingertips
function is not described

WP_Users_List_Table::ajax_user_can() public WP 3.1.0

Check the current user's permissions.

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

No Hooks.

Return

true|false.

Usage

$WP_Users_List_Table = new WP_Users_List_Table();
$WP_Users_List_Table->ajax_user_can();

Changelog

Since 3.1.0 Introduced.

Code of WP_Users_List_Table::ajax_user_can() WP 5.8.2

public function ajax_user_can() {
	if ( $this->is_site_users ) {
		return current_user_can( 'manage_sites' );
	} else {
		return current_user_can( 'list_users' );
	}
}