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