Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Last active January 17, 2024 15:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/685d7ab9d30a543760d07ea1cb1cfd77 to your computer and use it in GitHub Desktop.
Save KaineLabs/685d7ab9d30a543760d07ea1cb1cfd77 to your computer and use it in GitHub Desktop.
Remove Wild Activity Filter Bar
<?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' );
@forestnation
Copy link

@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.

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