bp_groups_members_filter()
Output the Group members filters
Description
Source
File: bp-groups/bp-groups-template.php
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
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.