Skip to content

Instantly share code, notes, and snippets.

Created January 16, 2018 09:02
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 anonymous/0de041caff67cd719dd5d12d1fda5035 to your computer and use it in GitHub Desktop.
Save anonymous/0de041caff67cd719dd5d12d1fda5035 to your computer and use it in GitHub Desktop.
Adding address format
/* Add comma to the address */
add_filter( 'wpsl_address_formats', 'custom_address_formats' );
function custom_address_formats( $address_formats ) {
$address_formats['zip_comma_state_comma_city'] = __( '(zip code), (state), (city)', 'wpsl' );
return $address_formats;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment