bp_activity_latest_update_content
The rtMedia for WordPress, BuddyPress and bbPress bp activity latest update content hook.
Description
apply_filters( 'bp_activity_latest_update_content', (unknown) $activity_content, (unknown) $activity_content );
Parameters (2)
- 0. $activity_content (unknown)
- The activity content.
- 1. $activity_content (unknown)
- The activity content.
Usage
- To run the hook, copy the example below.
- $activity_content = apply_filters( 'bp_activity_latest_update_content', $activity_content, $activity_content );
- if ( !empty( $activity_content ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_activity_latest_update_content callback
- function filter_bp_activity_latest_update_content( $activity_content, $activity_content ) {
- // make filter magic happen here...
- return $activity_content;
- };
- // add the filter
- add_filter( 'bp_activity_latest_update_content', 'filter_bp_activity_latest_update_content', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_activity_latest_update_content', 'filter_bp_activity_latest_update_content', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /app/main/controllers/activity/RTMediaBuddyPressActivity.php
- $activity_content = apply_filters( 'bp_activity_latest_update_content', $activity_content, $activity_content );