Yoast\WP\SEO\Bulk_Editor\User_Interface

Posts_Route::check_permissions │ public │ Yoast 1.0

Checks whether the current user is allowed to use the bulk editor.

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

Хуков нет.

Возвращает

bool. 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() Yoast 28.9

public function check_permissions(): bool {
	return \current_user_can( 'wpseo_manage_options' );
}