public function register_routes()
 {
     parent::register_route('/wpml', ['callback' => [$this, 'get_wpml_languages']]);
 }
 public function register_routes()
 {
     $args = $this->get_route_args();
     parent::register_route($this->get_subpath(), ['callback' => [$this, 'get_modified_content'], 'args' => $args]);
 }
예제 #3
0
 public function register_routes($namespace)
 {
     parent::register_route($namespace, self::URL, '/', ['callback' => [$this, 'get_multisites']]);
 }
예제 #4
0
 public function register_routes()
 {
     parent::register_route('/', ['callback' => [$this, 'get_multisites']]);
 }