Guest User

Untitled

a guest
Apr 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. /**
  3. * Restaurant endpoints.
  4. */
  5.  
  6. class REST_TUTORIAL_Restaurnt_Endpoint extends WP_REST_Controller {
  7. /**
  8. * Constructor.
  9. */
  10. public function __construct() {
  11. $this->namespace = 'rest-tutorial/v1';
  12. $this->rest_base = 'restaurants';
  13. $this->post_type = 'restaurant_listings';
  14. }
  15.  
  16. /**
  17. * Register the component routes.
  18. */
  19. public function register_routes() {
  20. }
  21. }
Add Comment
Please, Sign In to add comment