Advertisement
danine1

locations-comma

Mar 1st, 2022
1,023
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1.     $store_address = isset($location->store_address) ? $location->store_address . ', '  : '';
  2.         $store_address_2 = isset($location->store_address_2) ? $location->store_address_2 : '';
  3.         $store_city = isset($location->store_city) ? $location->store_city : '';
  4.         $store_postcode = isset($location->store_postcode) ? $location->store_postcode : '';
  5.         $store_country = isset( WC()->countries->countries[$store_country] ) ? WC()->countries->countries[$store_country] : '';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement