| Server IP : 78.24.162.143 / Your IP : 216.73.217.78 Web Server : Apache System : Linux hosting.cormo.systems 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 User : web63 ( 5058) PHP Version : 7.4.33 Disable Function : create_functions,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/clients/client34/web63/web/wp-content/plugins/pods/src/Pods/REST/V1/ |
Upload File : |
<?php
namespace Pods\REST\V1;
use Tribe__REST__Main as REST__Main;
/**
* Class Main
*
* The main entry point for the REST API.
*
* This class should not contain business logic and merely set up and start the REST API support.
*
* @since 2.8.0
*/
class Main extends REST__Main {
/**
* REST API URL prefix.
*
* This prefix is appended to the REST API URL ones.
*
* @var string
*/
protected $url_prefix = '/pods/v1';
/**
* REST API URL prefix.
*
* This prefix is appended to the REST API URL ones.
*
* @var string
*/
protected $namespace = 'pods';
/**
* @var array
*/
protected $registered_endpoints = [];
/**
* Returns the semantic version for REST API
*
* @since 2.8.0
*
* @return string
*/
public function get_semantic_version() {
return '1.0.0';
}
/**
* Returns the string indicating the REST API version.
*
* @since 2.8.0
*
* @return string
*/
public function get_version() {
return 'v1';
}
/**
* Returns the Pods REST API namespace string that hsould be used to register a route.
*
* @since 2.8.0
*
* @return string
*/
public function get_pods_route_namespace() {
return $this->get_namespace() . '/' . $this->get_version();
}
/**
* Returns the REST API URL prefix that will be appended to the namespace.
*
* The prefix should be in the `/some/path` format.
*
* @since 2.8.0
*
* @return string
*/
protected function url_prefix() {
return $this->url_prefix;
}
/**
* {@inheritDoc}
*
* @since 2.8.0
*/
public function get_reference_url() {
return esc_url( 'https://docs.pods.io/' );
}
}