woocommerce_rest_api_not_modified_response
woocommerce_rest_api_not_modified_response
Appears in: woocommerce.10.5.2
Hook Type: filter
Displaying hooks found in version: woocommerce.10.5.2apply_filters('woocommerce_rest_api_not_modified_response') is found 1 times:
- /src/Internal/Traits/RestApiCache.php line 478
* @param WP_REST_Response|false $response The 304 response object, or false to prevent sending it. * @param WP_REST_Request $request The request object. * @param string|null $endpoint_id The endpoint identifier. */ $filtered_response = apply_filters( 'woocommerce_rest_api_not_modified_response', $response, $request, $endpoint_id ); return false === $filtered_response ? null : rest_ensure_response( $filtered_response ); } /** * Get the default type for entities included in responses.