diff --git bp-groups/bp-groups-admin.php bp-groups/bp-groups-admin.php
index 4a4b2bc..e1c7ddd 100644
|
|
|
class BP_Groups_List_Table extends WP_List_Table {
|
| 1297 | 1297 | * @return array Array of column titles. |
| 1298 | 1298 | */ |
| 1299 | 1299 | function get_columns() { |
| 1300 | | return array( |
| | 1300 | return apply_filters( 'bp_groups_list_table_get_columns', array( |
| 1301 | 1301 | 'cb' => '<input name type="checkbox" />', |
| 1302 | 1302 | 'comment' => _x( 'Name', 'Groups admin Group Name column header', 'buddypress' ), |
| 1303 | 1303 | 'description' => _x( 'Description', 'Groups admin Group Description column header', 'buddypress' ), |
| 1304 | 1304 | 'status' => _x( 'Status', 'Groups admin Privacy Status column header', 'buddypress' ), |
| 1305 | 1305 | 'members' => _x( '# Members', 'Groups admin Members column header', 'buddypress' ), |
| 1306 | 1306 | 'last_active' => _x( 'Last Active', 'Groups admin Last Active column header', 'buddypress' ) |
| 1307 | | ); |
| | 1307 | ) ); |
| 1308 | 1308 | } |
| 1309 | 1309 | |
| 1310 | 1310 | /** |
| … |
… |
class BP_Groups_List_Table extends WP_List_Table {
|
| 1480 | 1480 | $last_active = groups_get_groupmeta( $item['id'], 'last_activity' ); |
| 1481 | 1481 | echo apply_filters_ref_array( 'bp_groups_admin_get_group_last_active', array( $last_active, $item ) ); |
| 1482 | 1482 | } |
| | 1483 | |
| | 1484 | /** |
| | 1485 | * Allow plugins to add their costum column. |
| | 1486 | * |
| | 1487 | * @since BuddyPress 2.0.0 |
| | 1488 | * |
| | 1489 | * @param array Information about the current row. |
| | 1490 | * @param string the column name. |
| | 1491 | */ |
| | 1492 | function column_default( $item = array(), $column_name = '' ) { |
| | 1493 | return apply_filters( 'bp_groups_admin_get_group_custom_column', '', $column_name, $item ); |
| | 1494 | } |
| 1483 | 1495 | } |