bp_groups_members_filter()

Output the Group members filters

Description

Source

File: bp-groups/bp-groups-template.php

5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
function bp_groups_members_filter() {
    ?>
    <li id="group_members-order-select" class="last filter">
        <label for="group_members-order-by"><?php _e( 'Order By:', 'buddyboss' ); ?></label>
        <select id="group_members-order-by">
            <option value="last_joined"><?php _e( 'Newest', 'buddyboss' ); ?></option>
            <option value="first_joined"><?php _e( 'Oldest', 'buddyboss' ); ?></option>
 
            <?php if ( bp_is_active( 'activity' ) ) : ?>
                <option value="group_activity"><?php _e( 'Group Activity', 'buddyboss' ); ?></option>
            <?php endif; ?>
 
            <option value="alphabetical"><?php _e( 'Alphabetical', 'buddyboss' ); ?></option>
 
            <?php
 
            /**
             * Fires at the end of the Group members filters select input.
             *
             * Useful for plugins to add more filter options.
             *
             * @since BuddyPress 2.0.0
             */
            do_action( 'bp_groups_members_order_options' ); ?>
 
        </select>
    </li>
    <?php
}

Changelog

Changelog
Version Description
BuddyPress 2.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.