/** * Constructor. * * @since BuddyPress (2.0.0) */ public function __construct() { // Define singular and plural labels, as well as whether we support AJAX. parent::__construct( array( 'ajax' => false, 'plural' => 'signups', 'singular' => 'signup', ) ); }
/** * 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; } }