Yoast\WP\SEO\Helpers

First_Time_Configuration_Notice_Helper::user_can_do_first_time_configuration()privateYoast 1.0

Whether the user can do the first-time configuration.

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

Хуков нет.

Возвращает

true|false. Whether the current user can do the first-time configuration.

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

// private - только в коде основоного (родительского) класса
$result = $this->user_can_do_first_time_configuration();

Код First_Time_Configuration_Notice_Helper::user_can_do_first_time_configuration() Yoast 24.4

private function user_can_do_first_time_configuration() {
	return \current_user_can( 'wpseo_manage_options' );
}