Last active
January 17, 2024 15:02
-
-
Save KaineLabs/685d7ab9d30a543760d07ea1cb1cfd77 to your computer and use it in GitHub Desktop.
Remove Wild Activity Filter Bar
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 | |
// Remove Wild Activity Filter Bar | |
function yzc_remove_wild_activity_nav() { | |
remove_action( 'youzify_profile_main_content', 'youzify_profile_activity_tab_filter_bar' ); | |
} | |
add_action( 'init', 'yzc_remove_wild_activity_nav'); | |
// Add Filter Bar Inside Content Main Content Area | |
function yzc_add_activity_boxed_filter_bar() { | |
if ( ! bp_is_user_activity() ) { | |
return; | |
} | |
add_action( 'bp_before_member_activity_post_form', 'youzify_profile_activity_tab_filter_bar' ); | |
} | |
add_action( 'bp_init', 'yzc_add_activity_boxed_filter_bar' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@KaineLabs // Add Filter Bar Inside Content Main Content Area - this no longer works with the latest BP version. Last known version that it worked was: BP Version 11.4.0.
// Remove Wild Activity Filter Bar - this does still work.