BP_Groups_List_Table::column_default( array $item = array(), string $column_name = '' )

Allow plugins to add their custom column.

Description

Parameters

$item

(array) (Optional) Information about the current row.

Default value: array()

$column_name

(string) (Optional) The column name.

Default value: ''

Return

(string)

Source

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

	public function column_default( $item = array(), $column_name = '' ) {

		/**
		 * Filters a string to allow plugins to add custom column content.
		 *
		 * @since BuddyPress 2.0.0
		 *
		 * @param string $value       Empty string.
		 * @param string $column_name Name of the column being rendered.
		 * @param array  $item        The current group item in the loop.
		 */
		return apply_filters( 'bp_groups_admin_get_group_custom_column', '', $column_name, $item );
	}

Changelog

Changelog
Version Description
BuddyPress 2.0.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.