Last active
July 27, 2022 07:42
-
-
Save Yorlinq/916670184edc6c55dad8619803cde31d to your computer and use it in GitHub Desktop.
Shortcode for 'Shop city' - WooCommerce
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
// Shortcode for 'Shop city': [yl_shop_address_city] | |
function yl_shop_address_city_shortcode() { | |
$address_city = get_option( 'woocommerce_store_city', '' ); | |
return apply_filters( 'woocommerce_countries_base_address', $address_city ); | |
} | |
add_shortcode( 'yl_shop_address_city', 'yl_shop_address_city_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment