Skip to content

Instantly share code, notes, and snippets.

@junenacpil29
Created January 4, 2021 03:31
Show Gist options
  • Save junenacpil29/afb9e89530bac8687acc186bbddfd5e2 to your computer and use it in GitHub Desktop.
Save junenacpil29/afb9e89530bac8687acc186bbddfd5e2 to your computer and use it in GitHub Desktop.
add_filter( 'wcv_format_store_address_args', 'my_wcv_format_store_address', 11, 2 );
function my_wcv_format_store_address( $address_args, $vendor_id ) {
$address_args = array(
'state' => get_user_meta( $vendor_id, '_wcv_store_state', true ),
'city' => get_user_meta( $vendor_id, '_wcv_store_city', true ),
);
return $address_args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment