BP_Activity_List_Table::column_default( array $item = array(), string $column_name = '' )
Allow plugins to add their custom column.
Description
Parameters
- $item
-
(Optional) Information about the current row.
Default value: array()
- $column_name
-
(Optional) The column name.
Default value: ''
Return
(string)
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 BuddyPress 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 ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.4.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.