Yoast\WP\SEO\Routes

Importing_Route::is_user_permitted_to_import()publicYoast 1.0

Whether or not the current user is allowed to import.

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

Хуков нет.

Возвращает

true|false. Whether or not the current user is allowed to import.

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

$Importing_Route = new Importing_Route();
$Importing_Route->is_user_permitted_to_import();

Код Importing_Route::is_user_permitted_to_import() Yoast 19.11

public function is_user_permitted_to_import() {
	return \current_user_can( 'activate_plugins' );
}