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.9.8.1

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
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
         * @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.