Add taxonomies to REST API
This commit is contained in:
8
includes/api/class-sp-rest-terms-controller.php
Normal file
8
includes/api/class-sp-rest-terms-controller.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
class SP_REST_Terms_Controller extends WP_REST_Terms_Controller {
|
||||
public function __construct( $taxonomy ) {
|
||||
parent::__construct( $taxonomy );
|
||||
$this->namespace = 'sportspress/v2';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user