- This topic has 3 replies, 2 voices, and was last updated 5 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Exclude term by login status?
Hello, just wondering if there’s a filter that would allow me to exclude a particular taxonomy term from searches by logged out users?
FYI I tried to make a separate form for logged in and logged out users. However, this form goes on the WooCommerce shop page. So I got an error message saying that’s not allowed.
Any help is appreciated!
You could remove the term from the field in the form using this filter:
https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object
You would check to make sure of the form ID, and the user’s logged in status, then remove the term if needed.
You may need to add that in the query then, using this filter:
https://searchandfilter.com/documentation/action-filter-reference/#edit-query-arguments