37 lines
686 B
PHP
37 lines
686 B
PHP
|
<?php
|
||
|
namespace Elementor\Modules\Apps;
|
||
|
|
||
|
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
|
||
|
use Elementor\Settings;
|
||
|
|
||
|
if ( ! defined( 'ABSPATH' ) ) {
|
||
|
exit; // Exit if accessed directly.
|
||
|
}
|
||
|
|
||
|
class Admin_Menu_Apps implements Admin_Menu_Item_With_Page {
|
||
|
|
||
|
public function is_visible() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
public function get_parent_slug() {
|
||
|
return Settings::PAGE_ID;
|
||
|
}
|
||
|
|
||
|
public function get_label() {
|
||
|
return esc_html__( 'Add-ons', 'elementor' );
|
||
|
}
|
||
|
|
||
|
public function get_page_title() {
|
||
|
return esc_html__( 'Add-ons', 'elementor' );
|
||
|
}
|
||
|
|
||
|
public function get_capability() {
|
||
|
return 'manage_options';
|
||
|
}
|
||
|
|
||
|
public function render() {
|
||
|
Admin_Apps_Page::render();
|
||
|
}
|
||
|
}
|