BP_Groups_List_Table::column_status( array $item = array() )

Markup for the Status column.

Description

Parameters

$item

(Optional) Information about the current row.

Default value: array()

Source

File: bp-groups/classes/class-bp-groups-list-table.php

	public function column_status( $item = array() ) {
		$status      = $item['status'];
		$status_desc = '';

		// @todo This should be abstracted out somewhere for the whole
		// Groups component.
		switch ( $status ) {
			case 'public' :
				$status_desc = __( 'Public', 'buddyboss' );
				break;
			case 'private' :
				$status_desc = __( 'Private', 'buddyboss' );
				break;
			case 'hidden' :
				$status_desc = __( 'Hidden', 'buddyboss' );
				break;
		}

		/**
		 * Filters the markup for the Status column.
		 *
		 * @since BuddyPress 1.7.0
		 *
		 * @param string $status_desc Markup for the Status column.
		 * @parma array  $item        The current group item in the loop.
		 */
		echo apply_filters_ref_array( 'bp_groups_admin_get_group_status', array( $status_desc, $item ) );
	}

Changelog

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.