This filter is executed before a form or any of its elements ( search form, map or search results ) is being displayed. Use this filter to modify the default values of the form.
Applies to all forms
<?php add_filter( "gmw_default_form_values" , "gmw_modify_form_values", 10, 1 );
Applies to a specific form by adding the form ID at the end
<?php add_filter( "gmw_default_form_values_1" , "gmw_modify_form_values", 10, 1 );
Applies to all forms of certain add-on using the add-on prefix
<?php add_filter( "gmw_pt_default_form_values" , "gmw_modify_form_values", 10, 1 );
$form ( multidimensional array )
The form that needs to be modified
This code should be placed in the functions.php file of your active theme.
This filter is located in includes/geo-my-wp-form-init-class.php