WPSEO_Register_Capabilities::register()publicYoast 1.0

Registers the capabilities.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Register_Capabilities = new WPSEO_Register_Capabilities();
$WPSEO_Register_Capabilities->register();

Код WPSEO_Register_Capabilities::register() Yoast 19.11

public function register() {
	$manager = WPSEO_Capability_Manager_Factory::get();

	$manager->register( 'wpseo_bulk_edit', [ 'editor', 'wpseo_editor', 'wpseo_manager' ] );
	$manager->register( 'wpseo_edit_advanced_metadata', [ 'editor', 'wpseo_editor', 'wpseo_manager' ] );

	$manager->register( 'wpseo_manage_options', [ 'administrator', 'wpseo_manager' ] );
	$manager->register( 'view_site_health_checks', [ 'wpseo_manager' ] );
}