woocommerce_countries_allowed_country_states
Usage
add_filter( 'woocommerce_countries_allowed_country_states', 'wp_kama_woocommerce_countries_allowed_country_states_filter' ); /** * Function for `woocommerce_countries_allowed_country_states` filter-hook. * * @param $states * * @return */ function wp_kama_woocommerce_countries_allowed_country_states_filter( $states ){ // filter... return $states; }
- $states
- -
Where the hook is called
woocommerce_countries_allowed_country_states
woocommerce/includes/class-wc-countries.php 380
return apply_filters( 'woocommerce_countries_allowed_country_states', $states );