开发者 |
mantish
rwky jonaskirch |
---|---|
更新时间 | 2024年3月31日 04:43 |
捐献地址: | 去捐款 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 6.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wc_city_select_cities
filter to load your cities. This is done similarly to adding states/provinces.
It should be added on your functions.php or a custom plugin.
`
add_filter( 'wc_city_select_cities', 'my_cities' );
/**
add_filter( 'wc_city_select_cities', 'my_cities' ); function my_cities( $cities ) { $cities['XX'] = array( 'City ', 'Another City' ); return $cities; }
GitHub
Source code and contributions at github