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