woocommerce_rest_customer_allowed_roles

woocommerce_rest_customer_allowed_roles

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_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.