Yoast\WP\SEO\Routes

First_Time_Configuration_Route::can_manage_options()publicYoast 1.0

Checks if the current user has the right capability.

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

Хуков нет.

Возвращает

true|false.

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

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

Код First_Time_Configuration_Route::can_manage_options() Yoast 19.2

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