WP_Comments_List_Table::ajax_user_canpublicWP 1.0

Checks if the user can edit posts.

Метод класса: WP_Comments_List_Table{}

Хуков нет.

Возвращает

true|false. Whether the user can edit posts.

Использование

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

Код WP_Comments_List_Table::ajax_user_can() WP 7.1

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