Title: Hide/Exclude Selection options
Last modified: August 31, 2016

---

# Hide/Exclude Selection options

 *  [schulz](https://wordpress.org/support/users/schulz/)
 * (@schulz)
 * [10 years ago](https://wordpress.org/support/topic/hideexclude-selection-options/)
 * I have selection form fields that have ‘undisclosed’ selection option. In the
   search form I would like to exclude certain selection options such as ‘undisclosed’.
   Is there a way to do this or is this a feature request?
 * [https://wordpress.org/plugins/bp-profile-search/](https://wordpress.org/plugins/bp-profile-search/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [10 years ago](https://wordpress.org/support/topic/hideexclude-selection-options/#post-7385749)
 * Hi schulz,
 * You could have a look at the filter ‘bps_field_data_for_search_form’, in file
   _bps-fields.php_, that probably can do what you need.
 *  Thread Starter [schulz](https://wordpress.org/support/users/schulz/)
 * (@schulz)
 * [10 years ago](https://wordpress.org/support/topic/hideexclude-selection-options/#post-7385754)
 * Thank you for your reply, however how do I use this?
 * When it comes to doing code I am a novice at best (I usually hack/fumble my way
   through it), would you be able to give me a little more to work with such as 
   sample code and where to use/insert it?
 * ‘bps_field_data_for_search_form’ appears on line 148 and 195? I assume this would
   identify an entire field, is there a way to target individual options within 
   a field (selection boxes or radio buttons)? Also is there a way to target specific
   form IDs as I would also like to apply different filters on different search 
   forms?
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [10 years ago](https://wordpress.org/support/topic/hideexclude-selection-options/#post-7385786)
 * Hi schulz,
 * Good question, there should be a way to target a specific form, but it’s missing
   right now.
 * As for a code snippet, please allow me a few days so I can test it before publishing
   it.
 *  Thread Starter [schulz](https://wordpress.org/support/users/schulz/)
 * (@schulz)
 * [10 years ago](https://wordpress.org/support/topic/hideexclude-selection-options/#post-7385787)
 * Thank you for all your efforts. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hide/Exclude Selection options’ is closed to new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [schulz](https://wordpress.org/support/users/schulz/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/hideexclude-selection-options/#post-7385787)
 * Status: not resolved