| 1 |
<?php |
| 2 |
namespace Elementor\App\AdminMenuItems; |
| 3 |
|
| 4 |
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item; |
| 5 |
use Elementor\TemplateLibrary\Source_Local; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
class Theme_Builder_Menu_Item implements Admin_Menu_Item { |
| 12 |
|
| 13 |
public function is_visible() { |
| 14 |
return true; |
| 15 |
} |
| 16 |
|
| 17 |
public function get_parent_slug() { |
| 18 |
return Source_Local::ADMIN_MENU_SLUG; |
| 19 |
} |
| 20 |
|
| 21 |
public function get_label() { |
| 22 |
return esc_html__( 'Theme Builder', 'elementor' ); |
| 23 |
} |
| 24 |
|
| 25 |
public function get_capability() { |
| 26 |
return 'manage_options'; |
| 27 |
} |
| 28 |
} |
| 29 |
|