Defined a priority for the REST API init method

This commit is contained in:
Claudio Sanches 2016-08-16 17:44:32 -03:00
parent 49b7dd6dfa
commit 525b11a2a2
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
/**