5 if ( ! defined(
'GRAVITYVIEW_DIR' ) ) {
15 public static function init() {
21 require_once
gravityview()->plugin->dir(
'future/includes/rest/class-gv-rest-route.php' );
22 require_once
gravityview()->plugin->dir(
'future/includes/rest/class-gv-rest-views-route.php' );
24 self::$routes[
'views'] = $views =
new Views_Route();
25 $views->register_routes();
35 return 'gravityview/v1';
46 return rest_url( self::get_namespace() );
If this file is called directly, abort.
static get_url()
Get root URL for GravityView REST API.
static get_namespace()
Get namespace for GravityView REST API endpoints.
If this file is called directly, abort.
gravityview()
The main GravityView wrapper function.
static init()
Initialization.