Created
February 6, 2020 16:32
-
-
Save techjewel/a12733053c93a5fa589a738edf10d4d3 to your computer and use it in GitHub Desktop.
Address Rearrange for Fluent Forms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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