| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Promotions\AdminMenuItems; |
| 4 |
|
| 5 |
use Elementor\Core\Admin\EditorOneMenu\Interfaces\Menu_Item_Interface; |
| 6 |
use Elementor\Modules\EditorOne\Classes\Menu_Config; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
class Editor_One_Custom_Code_Menu extends Custom_Code_Promotion_Item implements Menu_Item_Interface { |
| 13 |
public function get_position(): int { |
| 14 |
return 40; |
| 15 |
} |
| 16 |
|
| 17 |
public function get_slug(): string { |
| 18 |
return 'elementor_custom_code'; |
| 19 |
} |
| 20 |
|
| 21 |
public function get_parent_slug(): string { |
| 22 |
return 'elementor_custom_code'; |
| 23 |
} |
| 24 |
|
| 25 |
public function get_label(): string { |
| 26 |
return esc_html__( 'Code', 'elementor' ); |
| 27 |
} |
| 28 |
public function get_group_id(): string { |
| 29 |
return Menu_Config::CUSTOM_ELEMENTS_GROUP_ID; |
| 30 |
} |
| 31 |
} |
| 32 |
|