Yoast\WP\SEO\Routes

Indexables_Page_Route::permission_edit_others_posts()public staticYoast 1.0

Permission callback.

{} Это метод класса: Indexables_Page_Route{}

Хуков нет.

Возвращает

true|false. true when user has 'edit_others_posts' permission.

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

$result = Indexables_Page_Route::permission_edit_others_posts();

Код Indexables_Page_Route::permission_edit_others_posts() Yoast 19.10

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