Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Disable Activity Search On Home Page
* Disable Activity Search On Home Page.
function yzc_disable_activity_search_on_home_page() {
remove_action( 'bp_init', 'yz_buddypress_bp_init', 3 );
add_action( 'init', 'yzc_disable_activity_search_on_home_page' );
Copy link

funyin commented Mar 23, 2020

Thank you very much, this worked.
With all respect, I don't understand why the activity search was allowed to override the normal wordpress search in the first place since it doesn't display the search results in a detailed manner(like a results page). So one cant even search for blog posts, you'll just be redirected here.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment