BP_Groups_List_Table::__construct()

Constructor


Description Description


Source 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' ) );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.