Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fervous
Created May 19, 2017 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/ab983efd96cd197a460967ad06b7925d to your computer and use it in GitHub Desktop.
Save fervous/ab983efd96cd197a460967ad06b7925d to your computer and use it in GitHub Desktop.
Commented out store header address wc vendors Pro
// 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