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