Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

  • Mitsuhiro Kato
    Participant

    @mitsuhirok

    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.


    Mitsuhiro Kato
    Participant

    @mitsuhirok

    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


    Mitsuhiro Kato
    Participant

    @mitsuhirok

    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.

    Member

    Group

    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 );
    }


    Mitsuhiro Kato
    Participant

    @mitsuhirok

    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?

    function mitsuh_remove_alphabetical( $filters, $context ) {

    unset( $filters[‘alphabetical’] );

    return $filters;

    }
    add_filter(‘bp_nouveau_get_members_filters’, ‘mitsuh_remove_alphabetical’, 20, 2 );

    Please let me know.

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar