woocommerce_rest_prepare_data_country

woocommerce_rest_prepare_data_country

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_rest_prepare_data_country') is found 1 times:

  • /includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php line 166
    		 * @param WP_REST_Response $response The response object.
    		 * @param array            $data     The original country's states list.
    		 * @param WP_REST_Request  $request  Request used to generate the response.
    		 */
    		return apply_filters( 'woocommerce_rest_prepare_data_country', $response, $item, $request );
    	}
    
    	/**
    	 * Prepare links for the request.
    	 *
    	 * @param object $item Data object.