Created
February 8, 2020 02:18
-
-
Save KaineLabs/f234a7bc49a927941e1cfd60d0cd8ad4 to your computer and use it in GitHub Desktop.
Disable Activity Search On Home Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.