← All changes
|
inc/jwt/rest-api/version1/class-lp-rest-course-category-v1-controller.php
+19
-19
4.3.8
→
4.4.10
View file →
| @@ -1,19 +1,19 @@ | ||
| 1 | -<?php | |
| 2 | -class LP_Jwt_Course_Category_V1_Controller extends WP_REST_Terms_Controller { | |
| 3 | - | |
| 4 | - protected $taxonomy = 'course_category'; | |
| 5 | - | |
| 6 | - public function __construct() { | |
| 7 | - parent::__construct( $this->taxonomy ); | |
| 8 | - | |
| 9 | - $this->namespace = 'learnpress/v1'; | |
| 10 | - $this->rest_base = 'course_category'; | |
| 11 | - } | |
| 12 | - | |
| 13 | - /** | |
| 14 | - * Register routes for courses. | |
| 15 | - */ | |
| 16 | - public function register_routes() { | |
| 17 | - parent::register_routes(); | |
| 18 | - } | |
| 19 | -} | |
| 1 | +<?php | |
| 2 | +class LP_Jwt_Course_Category_V1_Controller extends WP_REST_Terms_Controller { | |
| 3 | + | |
| 4 | + protected $taxonomy = 'course_category'; | |
| 5 | + | |
| 6 | + public function __construct() { | |
| 7 | + parent::__construct( $this->taxonomy ); | |
| 8 | + | |
| 9 | + $this->namespace = 'learnpress/v1'; | |
| 10 | + $this->rest_base = 'course_category'; | |
| 11 | + } | |
| 12 | + | |
| 13 | + /** | |
| 14 | + * Register routes for courses. | |
| 15 | + */ | |
| 16 | + public function register_routes() { | |
| 17 | + parent::register_routes(); | |
| 18 | + } | |
| 19 | +} | |