WordPress at Your Fingertips
filter is not described

woocommerce_rest_prepare_data_continent filter-hook . WC 1.0

Filter the location list returned from the API.

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


add_filter( 'woocommerce_rest_prepare_data_continent', 'filter_function_name_9849', 10, 3 );
function filter_function_name_9849( $response, $item, $request ){
	// filter...

	return $response;
The response object.
The original list of continent(s), countries, and states.
Request used to generate the response.

Where the hook is called

woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php 219
return apply_filters( 'woocommerce_rest_prepare_data_continent', $response, $item, $request );

Where in WP core the hook is used WooCommerce

Usage not found.