Server IP : 104.21.14.103 / Your IP : 18.226.150.245 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/public_html/wp-content/plugins/wordpress-seo/admin/roles/ |
Upload File : |
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Roles */ /** * Role registration class. */ class WPSEO_Register_Roles implements WPSEO_WordPress_Integration { /** * Adds hooks. * * @return void */ public function register_hooks() { add_action( 'wpseo_register_roles', [ $this, 'register' ] ); } /** * Registers the roles. * * @return void */ public function register() { $role_manager = WPSEO_Role_Manager_Factory::get(); $role_manager->register( 'wpseo_manager', 'SEO Manager', 'editor' ); $role_manager->register( 'wpseo_editor', 'SEO Editor', 'editor' ); } }