开发者 |
mantish
rwky jonaskirch |
---|---|
更新时间 | 2024年12月15日 18:21 |
捐献地址: | 去捐款 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 6.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[woocommerce_cart]
and [woocommerce_checkout]
.
To make this plugin work, you can use these shortcodes instead of the blocks for your Cart and Checkout pages.
How to add cities
A list of cities has to be loaded in the functions.php file (the plugin already includes cities from some countries).
Use 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