File "role-manager-menu-item.php"

Full Path: /home/rrterraplen/public_html/wp-content-20241221212636/plugins/elementor/core/role-manager/role-manager-menu-item.php
File size: 855 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace Elementor\Core\RoleManager;

use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
use Elementor\Settings;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Role_Manager_Menu_Item implements Admin_Menu_Item_With_Page {

	private $role_manager;

	public function __construct( Role_Manager $role_manager ) {
		$this->role_manager = $role_manager;
	}

	public function is_visible() {
		return true;
	}

	public function get_parent_slug() {
		return Settings::PAGE_ID;
	}

	public function get_label() {
		return esc_html__( 'Role Manager', 'elementor' );
	}

	public function get_page_title() {
		return esc_html__( 'Role Manager', 'elementor' );
	}

	public function get_capability() {
		return 'manage_options';
	}

	public function render() {
		$this->role_manager->display_settings_page();
	}
}