PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.0
Elementor Website Builder – more than just a page builder v4.1.0
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / app / modules / onboarding / data / controller.php

controller.php in Elementor Website Builder – more than just a page builder 4.1.0, at app/modules/onboarding/data/controller.php

54 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\App\Modules\Onboarding\Data;
4
5 use Elementor\App\Modules\Onboarding\Data\Endpoints\Install_Pro;
6 use Elementor\App\Modules\Onboarding\Data\Endpoints\Install_Theme;
7 use Elementor\App\Modules\Onboarding\Data\Endpoints\Pro_Install_Screen;
8 use Elementor\App\Modules\Onboarding\Data\Endpoints\User_Choices;
9 use Elementor\App\Modules\Onboarding\Data\Endpoints\User_Progress;
10 use Elementor\Data\V2\Base\Controller as Base_Controller;
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 class Controller extends Base_Controller {
17
18 public function get_name(): string {
19 return 'onboarding';
20 }
21
22 public function register_endpoints(): void {
23 $this->register_endpoint( new User_Progress( $this ) );
24 $this->register_endpoint( new User_Choices( $this ) );
25 $this->register_endpoint( new Pro_Install_Screen( $this ) );
26 $this->register_endpoint( new Install_Pro( $this ) );
27 $this->register_endpoint( new Install_Theme( $this ) );
28 }
29
30 public function get_items_permissions_check( $request ) {
31 return current_user_can( 'manage_options' );
32 }
33
34 public function get_item_permissions_check( $request ) {
35 return current_user_can( 'manage_options' );
36 }
37
38 public function create_items_permissions_check( $request ) {
39 return current_user_can( 'manage_options' );
40 }
41
42 public function create_item_permissions_check( $request ) {
43 return current_user_can( 'manage_options' );
44 }
45
46 public function update_items_permissions_check( $request ) {
47 return current_user_can( 'manage_options' );
48 }
49
50 public function update_item_permissions_check( $request ) {
51 return current_user_can( 'manage_options' );
52 }
53 }
54