From 525b11a2a22e628fa630468a00835f17e3cd6b1e Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 16 Aug 2016 17:44:32 -0300 Subject: [PATCH] Defined a priority for the REST API init method --- includes/class-wc-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-api.php b/includes/class-wc-api.php index ff27619de7a..61756f651f2 100644 --- a/includes/class-wc-api.php +++ b/includes/class-wc-api.php @@ -118,7 +118,7 @@ class WC_API extends WC_Legacy_API { $this->rest_api_includes(); // Init REST API routes. - add_action( 'rest_api_init', array( $this, 'register_rest_routes' ) ); + add_action( 'rest_api_init', array( $this, 'register_rest_routes' ), 10 ); } /**