Created
August 11, 2018 02:09
-
-
Save iWebbers/5c11fdfe124671419d8a04ea1d101f94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get WooCommerce store address city via shortcode: [iw_store_address_city] | |
function iw_store_address_city_shortcode() { | |
$base_address = get_option( 'woocommerce_store_city', '' ); | |
return apply_filters( 'woocommerce_countries_base_address', $base_address ); | |
} | |
add_shortcode( 'iw_store_address_city', 'iw_store_address_city_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment