Last active
July 27, 2022 07:40
-
-
Save Yorlinq/1df9abc706adb0f470d9abaad686c253 to your computer and use it in GitHub Desktop.
Shortcode for 'Shop street' - 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 street': [yl_shop_address_street] | |
function yl_shop_address_street_shortcode() { | |
$address_street = get_option( 'woocommerce_store_address', '' ); | |
return apply_filters( 'woocommerce_countries_base_address', $address_street ); | |
} | |
add_shortcode( 'yl_shop_address_street', 'yl_shop_address_street_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment