1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php namespace Elementor\Modules\Checklist\Data;
use Elementor\Data\V2\Base\Controller as Controller_Base; use Elementor\Modules\Checklist\Data\Endpoints\Steps; use Elementor\Modules\Checklist\Data\Endpoints\User_Progress;
if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly }
class Controller extends Controller_Base { public function get_name() { return 'checklist'; }
public function register_endpoints() { $this->index_endpoint->register_item_route(); $this->register_endpoint( new Steps( $this ) ); $this->register_endpoint( new User_Progress( $this ) ); }
public function update_items_permissions_check( $request ) { return current_user_can( 'manage_options' ); }
public function update_item_permissions_check( $request ) { return current_user_can( 'manage_options' ); }
public function get_item_permissions_check( $request ) { return current_user_can( 'manage_options' ); }
public function get_items_permissions_check( $request ) { return current_user_can( 'manage_options' ); } }
|