Looking for similar filter to pre_get_posts but for bp_search
I could modify the currect query of the WP Core search using the filter of pre_get_posts but in the case of bp_search I cannot, is any filter that I could use to modify the results/query when we use the Buddypress search instead of WordPress Search? ?s=clean&subset=pages&bp_search=1
I need to exclude some pages/post or custom types, maybe ID’s in general from the BuddyPress Search, but I dont wanna to install another plugin, I prefer to have the control under function.php for example,
Is any filter that allow to modify the query as “pre_get_post” did ?
thanks in advance
- You must be logged in to reply to this topic.