groups_activity_new_update_action
Filters the action for the new group activity update.
Description
Parameters (1)
- 0. $activity_action (string)
- The new group activity update.
Usage
- To run the hook, copy the example below.
- $activity_action = apply_filters( 'groups_activity_new_update_action', $activity_action );
- if ( !empty( $activity_action ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the groups_activity_new_update_action callback
- function filter_groups_activity_new_update_action( $activity_action ) {
- // make filter magic happen here...
- return $activity_action;
- };
- // add the filter
- add_filter( 'groups_activity_new_update_action', 'filter_groups_activity_new_update_action', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'groups_activity_new_update_action', 'filter_groups_activity_new_update_action', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-groups/bp-groups-functions.php
- $action = apply_filters( 'groups_activity_new_update_action', $activity_action );