woocommerce_rest_customer_allowed_roles
woocommerce_rest_customer_allowed_roles
Appears in: woocommerce.10.0.4, woocommerce.10.1.2, woocommerce.9.5.2, woocommerce.9.7.0, woocommerce.9.7.1, woocommerce.9.8.1, woocommerce.9.8.5, woocommerce.9.9.5
Hook Type: filter
Displaying hooks found in version: woocommerce.9.9.5apply_filters('woocommerce_rest_customer_allowed_roles') is found 1 times:
- /includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php line 156
* @param array $roles Array of allowed roles. * * @since 9.5.2 */ return apply_filters( 'woocommerce_rest_customer_allowed_roles', array( 'customer', 'subscriber' ) ); } /** * Check if a given request has access create customers. * * @param WP_REST_Request $request Full details about the request.