Created
February 24, 2014 19:58
-
-
Save tlovett1/9195793 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class Vistage_Chair_API sets up routes and endpoints of CPT API | |
*/ | |
class Vistage_Chair_API extends WP_JSON_CustomPostType { | |
protected $base = '/chair-profiles'; | |
protected $type = 'vistage_chair'; | |
public function registerRoutes( $routes ) { | |
$routes = parent::registerRoutes( $routes ); | |
return $routes; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment