@mitsuhirok
3 years, 4 months ago
Awesome! Thank you very very very much! I could make it!
I love BuddyPress. I was thinking which one is good for me, BuddyPress or BuddyBoss before I use BuddyPress. BuddyPress is so GOOD! So, I will use BuddyPress forever.
Thank you very very very much! I could make it!
Member
You are so genius!
By the way, Is it the same way to erase alphabetical sort in Group?
Group
Thank you very very much. I put the code in the of functions.php like this. But it doesn’t work. I can still see the alphabetical sort in the page.
remove_filter( ‘_bp_nouveau_member_reset_front_template’, ‘bp_nouveau_member_restrict_user_front_templates’, 10, 1 );
$nav = buddypress()->members->nav;
// Eventually reset the order. bp_nouveau_set_nav_item_order( $nav, bp_nouveau_get_appearance_settings( ‘user_nav_order’ ) );
return $nav->get_primary();
function mitsuh_remove_alphabetical( $filters, $context ) {
unset( $filters[‘alphabetical’] );
return $filters;
} add_filter(‘bp_nouveau_get_members_filters’, ‘mitsuh_remove_alphabetical’, 20, 2 ); }
Thank you very much. But I can’t find
apply_filters( ‘bp_nouveau_get_members_filters’, $filters, $context );
in
buddypress\bp-templates\bp-nouveau\includes\members\functions.php
I checked the code in functions.php. But I couldn’t find.
I am not good at writing code.
How to find the code in functions.php?
How to put this code, too?
} add_filter(‘bp_nouveau_get_members_filters’, ‘mitsuh_remove_alphabetical’, 20, 2 );
Please let me know.