Yoast\WP\SEO\Tracking\User_Interface

Action_Tracking_Route::check_capabilities │ public │ Yoast 1.0

Checks if the current user has the required capabilities.

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

Хуков нет.

Возвращает

bool.

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

$Action_Tracking_Route = new Action_Tracking_Route();
$Action_Tracking_Route->check_capabilities();

Код Action_Tracking_Route::check_capabilities() Yoast 28.9

public function check_capabilities() {
	return $this->capability_helper->current_user_can( 'wpseo_manage_options' );
}