Add taxonomies to REST API

This commit is contained in:
Brian Miyaji
2016-12-16 15:57:42 +11:00
parent 2aca097f5e
commit 39a3f12ff1
4 changed files with 17 additions and 74 deletions

View 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';
}
}