woocommerce_hydration_dispatch_request

woocommerce_hydration_dispatch_request

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.1

apply_filters('woocommerce_hydration_dispatch_request') is found 1 times:

  • /src/Blocks/Domain/Services/Hydration.php line 150
    		 * @param WP_REST_Request  $request          Request used to generate the response.
    		 * @param string           $path             Request path matched for the request..
    		 * @param array            $handler          Route handler used for the request.
    		 */
    		$hydration_result = apply_filters( 'woocommerce_hydration_dispatch_request', null, $request, $path, $handler );
    
    		if ( null !== $hydration_result ) {
    			$response = $hydration_result;
    		} else {
    			$response = call_user_func_array( $handler['callback'], array( $request ) );
    		}