WP_Comments_List_Table::ajax_user_can │ public │ WP 1.0

Checks if the user can edit posts.

Method of the class: WP_Comments_List_Table{}

No Hooks.

Returns

bool. Whether the user can edit posts.

Usage

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

WP_Comments_List_Table::ajax_user_can() code WP 7.1.4

public function ajax_user_can() {
	return current_user_can( 'edit_posts' );
}