apply_filters( 'woocommerce_rest_prepare_data_country', WP_REST_Response $response, array $data, WP_REST_Request $request )

Filter the states list for a country returned from the API.


Description Description

Allows modification of the loction data right before it is returned.


Parameters Parameters

$response

The response object.

$data

The original country's states list.

$request

Request used to generate the response.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.