Ejemplo n.º 1
0
 /**
  * Registers plugin endpoints.
  *
  * @return void.
  */
 public static function registerEndpoints()
 {
     $endPoints = new Endpoints();
     $endPoints->registerRoutes();
 }
Ejemplo n.º 2
0
 public function getUpdateEndpoint()
 {
     $endpoints = new Endpoints();
     $rest_url = get_rest_url();
     $route = $endpoints->getNameSpace() . '/' . $endpoints::ROUTE_UPDATE_CALLBACK;
     return $rest_url . $route;
 }