Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 3.22.185.143
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : controller.php
<?php
namespace Elementor\Includes\TemplateLibrary\Data;

use Elementor\User;
use Elementor\TemplateLibrary\Source_Local;
use Elementor\Data\V2\Base\Controller as Controller_Base;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Controller extends Controller_Base {

	public function get_name() {
		return 'template-library';
	}

	public function register_endpoints() {
		$this->register_endpoint( new Endpoints\Templates( $this ) );
	}

	protected function register_index_endpoint() {
		// Bypass, currently does not required.
	}

	public function get_permission_callback( $request ) {
		return User::is_current_user_can_edit_post_type( Source_Local::CPT );
	}
}
© 2025 GrazzMean-Shell