geno/wp-content/plugins/elementor/app/admin-menu-items/theme-builder-menu-item.php
2024-02-01 11:54:18 +00:00

28 lines
570 B
PHP

<?php
namespace Elementor\App\AdminMenuItems;
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item;
use Elementor\TemplateLibrary\Source_Local;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Theme_Builder_Menu_Item implements Admin_Menu_Item {
public function is_visible() {
return true;
}
public function get_parent_slug() {
return Source_Local::ADMIN_MENU_SLUG;
}
public function get_label() {
return esc_html__( 'Theme Builder', 'elementor' );
}
public function get_capability() {
return 'manage_options';
}
}