Yoast\WP\SEO\Routes

First_Time_Configuration_Route::can_edit_other_posts()publicYoast 1.0

Checks if the current user has the capability to edit posts of other users.

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

Хуков нет.

Возвращает

true|false.

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

$First_Time_Configuration_Route = new First_Time_Configuration_Route();
$First_Time_Configuration_Route->can_edit_other_posts();

Код First_Time_Configuration_Route::can_edit_other_posts() Yoast 22.3

public function can_edit_other_posts() {
	return \current_user_can( 'edit_others_posts' );
}