| 1 |
<?php |
| 2 |
namespace Elementor\Core\Editor\Data\Globals; |
| 3 |
|
| 4 |
use Elementor\Data\Base\Controller as Controller_Base; |
| 5 |
|
| 6 |
class Controller extends Controller_Base { |
| 7 |
public function get_name() { |
| 8 |
return 'globals'; |
| 9 |
} |
| 10 |
|
| 11 |
public function register_endpoints() { |
| 12 |
$this->register_endpoint( Endpoints\Colors::class ); |
| 13 |
$this->register_endpoint( Endpoints\Typography::class ); |
| 14 |
} |
| 15 |
|
| 16 |
protected function register_internal_endpoints() { |
| 17 |
$this->register_endpoint( Endpoints\Index::class ); |
| 18 |
} |
| 19 |
|
| 20 |
public function get_permission_callback( $request ) { |
| 21 |
return current_user_can( 'edit_posts' ); |
| 22 |
} |
| 23 |
} |
| 24 |
|