Created
August 11, 2018 02:08
-
-
Save iWebbers/d36fc81cec3605d5a1f6891ace0c92ab 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 postcode via shortcode: [iw_store_address_postcode] | |
function iw_store_address_postcode_shortcode() { | |
$base_address = get_option( 'woocommerce_store_postcode', '' ); | |
return apply_filters( 'woocommerce_countries_base_address', $base_address ); | |
} | |
add_shortcode( 'iw_store_address_postcode', 'iw_store_address_postcode_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment