WP_Comments_List_Table::ajax_user_canpublicWP 1.0

Checks if the user can edit posts.

Method of the class: WP_Comments_List_Table{}

No Hooks.

Returns

true|false. 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.0

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