Defined a priority for the REST API init method
This commit is contained in:
parent
49b7dd6dfa
commit
525b11a2a2
|
@ -118,7 +118,7 @@ class WC_API extends WC_Legacy_API {
|
||||||
$this->rest_api_includes();
|
$this->rest_api_includes();
|
||||||
|
|
||||||
// Init REST API routes.
|
// 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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue