Yoast\WP\SEO\Dashboard\User_Interface\Configuration
Site_Kit_Consent_Management_Route::check_capabilities()
Checks if the current user has the required capabilities.
Метод класса: Site_Kit_Consent_Management_Route{}
Хуков нет.
Возвращает
true|false
.
Использование
$Site_Kit_Consent_Management_Route = new Site_Kit_Consent_Management_Route(); $Site_Kit_Consent_Management_Route->check_capabilities();
Код Site_Kit_Consent_Management_Route::check_capabilities() Site Kit Consent Management Route::check capabilities Yoast 25.1
public function check_capabilities() { return $this->capability_helper->current_user_can( 'wpseo_manage_options' ); }