Created
October 23, 2024 10:22
-
-
Save propertyhive/688a578edfd1324fb9856705cffd0959 to your computer and use it in GitHub Desktop.
This file contains 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
add_filter( 'propertyhive_search_form_fields_after', 'add_form_control_class_to_form_fields', 99 ); | |
function add_form_control_class_to_form_fields($fields) | |
{ | |
$new_fields = array(); | |
foreach ( $fields as $field ) | |
{ | |
$field['class'] = 'form-control'; | |
$new_fields[] = $field; | |
} | |
return $new_fields; // return the fields | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment