Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Restaurant endpoints.
- */
- class REST_TUTORIAL_Restaurnt_Endpoint extends WP_REST_Controller {
- /**
- * Constructor.
- */
- public function __construct() {
- $this->namespace = 'rest-tutorial/v1';
- $this->rest_base = 'restaurants';
- $this->post_type = 'restaurant_listings';
- }
- /**
- * Register the component routes.
- */
- public function register_routes() {
- }
- }
Add Comment
Please, Sign In to add comment