Yoast\WP\SEO\Routes

Integrations_Route::can_manage_options()publicYoast 1.0

Checks if the current user has the right capability.

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

Хуков нет.

Возвращает

true|false.

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

$Integrations_Route = new Integrations_Route();
$Integrations_Route->can_manage_options();

Код Integrations_Route::can_manage_options() Yoast 19.7.1

public function can_manage_options() {
	return \current_user_can( 'wpseo_manage_options' );
}