BP_Groups_List_Table::__construct()
Constructor
Description
Source
File: bp-groups/classes/class-bp-groups-list-table.php
public function __construct() { // Define singular and plural labels, as well as whether we support AJAX. parent::__construct( array( 'ajax' => false, 'plural' => 'groups', 'singular' => 'group', ) ); // Add Group Type column and bulk change controls. if ( bp_groups_get_group_types() ) { // Add Group Type column. add_filter( 'bp_groups_list_table_get_columns', array( $this, 'add_type_column' ) ); add_filter( 'bp_groups_admin_get_group_custom_column', array( $this, 'column_content_group_type' ), 10, 3 ); // Add the bulk change select. add_action( 'bp_groups_list_table_after_bulk_actions', array( $this, 'add_group_type_bulk_change_select' ) ); } }
Changelog
Version | Description |
---|---|
BuddyPress 1.7.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.