Yoast\WP\SEO\Routes
First_Time_Configuration_Route::can_edit_other_posts()
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() First Time Configuration Route::can edit other posts Yoast 22.3
public function can_edit_other_posts() { return \current_user_can( 'edit_others_posts' ); }