PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.9
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.9
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / roles / class-register-roles.php

class-register-roles.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.9, at admin/roles/class-register-roles.php

34 lines 610 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSEO plugin file.
4 *
5 * @package WPSEO\Admin\Roles
6 */
7
8 /**
9 * Role registration class.
10 */
11 class WPSEO_Register_Roles implements WPSEO_WordPress_Integration {
12
13 /**
14 * Adds hooks.
15 *
16 * @return void
17 */
18 public function register_hooks() {
19 add_action( 'wpseo_register_roles', [ $this, 'register' ] );
20 }
21
22 /**
23 * Registers the roles.
24 *
25 * @return void
26 */
27 public function register() {
28 $role_manager = WPSEO_Role_Manager_Factory::get();
29
30 $role_manager->register( 'wpseo_manager', 'SEO Manager', 'editor' );
31 $role_manager->register( 'wpseo_editor', 'SEO Editor', 'editor' );
32 }
33 }
34