BP_REST_Members_Details_Endpoint::bp_rest_legacy_get_members_directory_nav_items()
Legacy template members directory navigation support added.
Description
Return
(mixed|void)
Source
File: bp-members/classes/class-bp-rest-members-details-endpoint.php
public function bp_rest_legacy_get_members_directory_nav_items() { $nav_items = array(); $nav_items['all'] = array( 'text' => __( 'All Members', 'buddyboss' ), 'position' => 5, 'count' => bp_get_total_member_count(), ); if ( is_user_logged_in() ) { if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) { $nav_items['friends'] = array( 'text' => __( 'My Friends', 'buddyboss' ), 'position' => 15, 'count' => bp_get_total_friend_count( bp_loggedin_user_id() ), ); } } return apply_filters( 'bp_rest_legacy_get_members_directory_nav_items', $nav_items ); }
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.