Yoast\WP\SEO\Bulk_Editor\User_Interface
Posts_Route::check_permissions
Checks whether the current user is allowed to use the bulk editor.
Метод класса: Posts_Route{}
Хуков нет.
Возвращает
true|false. Whether the current user is allowed to use the bulk editor.
Использование
$Posts_Route = new Posts_Route(); $Posts_Route->check_permissions(): bool;
Код Posts_Route::check_permissions() Posts Route::check permissions Yoast 28.3
public function check_permissions(): bool {
return \current_user_can( 'wpseo_manage_options' );
}