Modify Taxonomy Drop-down Options
This short script allows you to modify some of the options for each of the Taxonomies displayed in GEO my WP search forms.
Below is the filter that is going to be used is in order to do that:
apply_filters( 'gmw_pt_dropdown_taxonomy_args', $args, $gmw, $taxonomy);
which can be found in
The arguments provided by the filter are:
- $args - the default arguments pass into the function.
- $gmw - the form's settings.
- $taxonomy - the taxonomy value GEO my WP uses the function wp_dropdown_categories in order to display a taxonomy drop-down select box.
Below is the complete list of the arguments that the function provides and that you can modify using the filter above:
Please refer to the function's original page for more information about each of the arguments.