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

Allow plugins to add their custom column.


Description Description


Parameters Parameters

$item

(Optional) Information about the current row.

Default value: array()

$column_name

(Optional) The column name.

Default value: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

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

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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