BP_Members_MS_List_Table::views()

Display the users screen views

Description

Source

File: bp-members/classes/class-bp-members-ms-list-table.php

97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
public function views() {
    global $role;
 
    // Used to reset the role.
    $reset_role = $role;
 
    // Temporarly set the role to registered.
    $role = 'registered';
 
    // Used to reset the screen id once views are displayed.
    $reset_screen_id = $this->screen->id;
 
    // Temporarly set the screen id to the users one.
    $this->screen->id = 'users-network';
 
    // Use the parent function so that other plugins can safely add views.
    parent::views();
 
    // Reset the role.
    $role = $reset_role;
 
    // Reset the screen id.
    $this->screen->id = $reset_screen_id;
}

Changelog

Changelog
Version Description
BuddyPress 2.5.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.