Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/f234a7bc49a927941e1cfd60d0cd8ad4 to your computer and use it in GitHub Desktop.
Save KaineLabs/f234a7bc49a927941e1cfd60d0cd8ad4 to your computer and use it in GitHub Desktop.
Disable Activity Search On Home Page
<?php
/*
* 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' );
@funyin
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