Created
May 19, 2017 02:05
-
-
Save fervous/3e24e42cb97c2bf8c9f4302feceeddf0 to your computer and use it in GitHub Desktop.
normal store header address lines 47-55 wc vendors pro
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
// Migrate to store address array | |
$address1 = ( array_key_exists( '_wcv_store_address1', $vendor_meta ) ) ? $vendor_meta[ '_wcv_store_address1' ] : ''; | |
$address2 = ( array_key_exists( '_wcv_store_address2', $vendor_meta ) ) ? $vendor_meta[ '_wcv_store_address2' ] : ''; | |
$city = ( array_key_exists( '_wcv_store_city', $vendor_meta ) ) ? $vendor_meta[ '_wcv_store_city' ] : ''; | |
$state = ( array_key_exists( '_wcv_store_state', $vendor_meta ) ) ? $vendor_meta[ '_wcv_store_state' ] : ''; | |
$phone = ( array_key_exists( '_wcv_store_phone', $vendor_meta ) ) ? $vendor_meta[ '_wcv_store_phone' ] : ''; | |
$store_postcode = ( array_key_exists( '_wcv_store_postcode', $vendor_meta ) ) ? $vendor_meta[ '_wcv_store_postcode' ] : ''; | |
$address = ( $address1 != '') ? $address1 .', ' . $city .', '. $state .', '. $store_postcode : ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment