bp_groups_admin_get_group_last_active
Filters the markup for the Last Active column.
Description
Parameters (1)
- 0. $array (array) =>
array( $last_active, $item )
- Markup for the Last Active column.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'bp_groups_admin_get_group_last_active', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_groups_admin_get_group_last_active callback
- function filter_bp_groups_admin_get_group_last_active( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'bp_groups_admin_get_group_last_active', 'filter_bp_groups_admin_get_group_last_active', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_groups_admin_get_group_last_active', 'filter_bp_groups_admin_get_group_last_active', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-groups/classes/class-bp-groups-list-table.php
- echo apply_filters_ref_array( 'bp_groups_admin_get_group_last_active', array( $last_active, $item ) );