WP_Comments_List_Table::ajax_user_can
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() WP Comments List Table::ajax user can code WP 7.0
public function ajax_user_can() {
return current_user_can( 'edit_posts' );
}