コード例 #1
0
ファイル: Bootstrap.php プロジェクト: benjaminmedia/wp-trapp
 /**
  * Registers plugin endpoints.
  *
  * @return void.
  */
 public static function registerEndpoints()
 {
     $endPoints = new Endpoints();
     $endPoints->registerRoutes();
 }
コード例 #2
0
ファイル: Events.php プロジェクト: benjaminmedia/wp-trapp
 public function getUpdateEndpoint()
 {
     $endpoints = new Endpoints();
     $rest_url = get_rest_url();
     $route = $endpoints->getNameSpace() . '/' . $endpoints::ROUTE_UPDATE_CALLBACK;
     return $rest_url . $route;
 }