Files
2026-03-26 14:00:57 +01:00

32 lines
679 B
PHP

<?php
namespace ElementorPro\Modules\ThemeBuilder\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 get_capability(): string {
return 'publish_posts';
}
public function get_label(): string {
return esc_html__( 'Theme Builder', 'elementor-pro' );
}
public function get_parent_slug(): string {
return Source_Local::ADMIN_MENU_SLUG;
}
public function is_visible(): bool {
return true;
}
public function get_position(): ?int {
return 20;
}
}