BP_Members_List_Table::views()
Display the users screen views
Description
Source
File: bp-members/classes/class-bp-members-list-table.php
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'; // 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
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.