Reply To: Custom filters should execute only on custom page
In your filter functions, why not check for page_id or title – if not available, then just
return
Well, ask the WP/BP page lifecycle 😉 Making a hook dependent on a variable that in some stages of the page lifecycle does not exist leads to that some hooks are never fired (e. g. bp_members_directory_order_options or bp_pre_user_query, etc.).
Thanks again for your replies and the offer to help out with the code. I solved the issue yesterday by implementing the custom page independent from BuddyPress as it was a faster, cleaner and more reliable solution.
🙂