woocommerce_rest_prepare_fulfillments_providers

woocommerce_rest_prepare_fulfillments_providers

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.5.2

apply_filters('woocommerce_rest_prepare_fulfillments_providers') is found 1 times:

  • /src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php line 455
    		 * @param WP_REST_Request $request   The request object.
    		 *
    		 * @since 10.5.0
    		 */
    		$providers = apply_filters( 'woocommerce_rest_prepare_fulfillments_providers', $providers, $request );
    
    		// Validate filtered result to prevent extensions from returning invalid structures.
    		if ( ! is_array( $providers ) ) {
    			_doing_it_wrong(
    				'woocommerce_rest_prepare_fulfillments_providers',
    				esc_html__( 'The filter must return an array of providers.', 'woocommerce' ),