From a6e1fce9abe09567934b62845aab7ea4aae224a1 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 11 Apr 2016 01:50:29 +1000 Subject: [PATCH] Add rest api hooks for other posts types --- includes/api/class-sp-rest-api.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/api/class-sp-rest-api.php b/includes/api/class-sp-rest-api.php index 176cfa74..d278f308 100644 --- a/includes/api/class-sp-rest-api.php +++ b/includes/api/class-sp-rest-api.php @@ -85,6 +85,8 @@ class SP_REST_API { $controller = new SP_REST_Posts_Controller( 'sp_staff' ); $controller->register_routes(); + + do_action( 'sportspress_create_rest_routes' ); } /** @@ -402,6 +404,8 @@ class SP_REST_API { ), ) ); + + do_action( 'sportspress_register_rest_fields' ); } /**