| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Promotions\AdminMenuItems; |
| 4 |
|
| 5 |
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page; |
| 6 |
use Elementor\Settings; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly |
| 10 |
} |
| 11 |
|
| 12 |
class Go_Pro_Promotion_Item implements Admin_Menu_Item_With_Page { |
| 13 |
const URL = 'https://go.elementor.com/pro-admin-menu/'; |
| 14 |
|
| 15 |
public function is_visible() { |
| 16 |
return true; |
| 17 |
} |
| 18 |
|
| 19 |
public function get_parent_slug() { |
| 20 |
return Settings::PAGE_ID; |
| 21 |
} |
| 22 |
|
| 23 |
public function get_label() { |
| 24 |
return esc_html__( 'Upgrade', 'elementor' ); |
| 25 |
} |
| 26 |
|
| 27 |
public function get_page_title() { |
| 28 |
return ''; |
| 29 |
} |
| 30 |
|
| 31 |
public function get_capability() { |
| 32 |
return 'manage_options'; |
| 33 |
} |
| 34 |
|
| 35 |
public function render() { |
| 36 |
// Redirects from the module on `admin_init`. |
| 37 |
die; |
| 38 |
} |
| 39 |
} |
| 40 |
|