Skip to content

Instantly share code, notes, and snippets.

@techjewel
Created February 6, 2020 16:32
Show Gist options
  • Save techjewel/a12733053c93a5fa589a738edf10d4d3 to your computer and use it in GitHub Desktop.
Save techjewel/a12733053c93a5fa589a738edf10d4d3 to your computer and use it in GitHub Desktop.
Address Rearrange for Fluent Forms
<?php
add_filter('fluenform_rendering_field_data_address', function ($data) {
$fields = $data['fields'];
// You can re-arrange the fields here
$data['fields'] = array_merge(array_flip(array(
'address_line_1',
'address_line_2',
'zip',
'city',
'state',
'country'
)), $fields);
return $data;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment