bp_get_activity_action
Filters current activity item action.
Description
Parameters (1)
- 0. $array (array) =>
array( $item['action'] )
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'bp_get_activity_action', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_get_activity_action callback
- function filter_bp_get_activity_action( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'bp_get_activity_action', 'filter_bp_get_activity_action', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_get_activity_action', 'filter_bp_get_activity_action', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /bp-activity/classes/class-bp-activity-list-table.php
- $content = apply_filters_ref_array( 'bp_get_activity_action', array( $item['action'] ) );
- /bp-activity/bp-activity-template.php
- return apply_filters_ref_array( 'bp_get_activity_action', array(