/**
  * Get the views (the links above the WP List Table).
  *
  * @since BuddyPress (2.0.0)
  *
  * @uses WP_Users_List_Table::get_views() to get the users views
  */
 public function get_views()
 {
     $views = parent::get_views();
     // Remove the 'current' class from the 'All' link
     $views['all'] = str_replace('class="current"', '', $views['all']);
     $views['registered'] = '<a href="' . add_query_arg('page', 'bp-signups', bp_get_admin_url('users.php')) . '"  class="current">' . sprintf(_x('Pending <span class="count">(%s)</span>', 'signup users', 'buddypress'), number_format_i18n($this->signup_counts)) . '</a>';
     return $views;
 }
 /**
  * Get the views (the links above the WP List Table).
  *
  * @since 2.0.0
  *
  * @uses WP_Users_List_Table::get_views() to get the users views.
  */
 public function get_views()
 {
     $views = parent::get_views();
     // Remove the 'current' class from the 'All' link.
     $views['all'] = str_replace('class="current"', '', $views['all']);
     $views['registered'] = sprintf('<a href="%1$s" class="current">%2$s</a>', esc_url(add_query_arg('page', 'bp-signups', bp_get_admin_url('users.php'))), sprintf(_x('Pending %s', 'signup users', 'buddypress'), '<span class="count">(' . number_format_i18n($this->signup_counts) . ')</span>'));
     return $views;
 }
 /**
  * Constructor
  * 
  * @param array $args An associative array with information about the current table
  * @since Achievements (3.0)
  */
 public function __construct($args = array())
 {
     parent::__construct($args);
     // Override the WP_Users_List_Table's opinion of whether to show network users or not.
     $this->is_site_users = dpa_is_running_networkwide();
     if ($this->is_site_users) {
         $this->site_id = isset($_REQUEST['id']) ? absint($_REQUEST['id']) : 0;
     }
 }
 /**
  * Display the users screen views
  *
  * @since 2.5.0
  *
  * @global string $role The name of role the users screens is filtered by
  */
 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;
 }
 /**
  * 	Get WP default users columns per post type.
  *
  * 	@since     1.1
  */
 private function get_wp_default_users_columns()
 {
     // You can use this filter to add third_party columns by hooking into this.
     do_action('cpac-get-default-columns-users');
     if (file_exists(ABSPATH . 'wp-admin/includes/class-wp-list-table.php')) {
         require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
     }
     if (file_exists(ABSPATH . 'wp-admin/includes/class-wp-users-list-table.php')) {
         require_once ABSPATH . 'wp-admin/includes/class-wp-users-list-table.php';
     }
     // turn off site users
     $this->is_site_users = false;
     // get users columns
     $columns = WP_Users_List_Table::get_columns();
     // change to uniform format
     $columns = $this->get_uniform_format($columns);
     return apply_filters('cpac-default-users-columns', $columns);
 }