bp_get_activity_content_body
The BuddyPress bp get activity content body hook.
Description
Parameters (1)
- 0. $activity_content (unknown)
- The activity content.
Usage
- To run the hook, copy the example below.
- $activity_content = apply_filters( 'bp_get_activity_content_body', $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_get_activity_content_body callback
- function filter_bp_get_activity_content_body( $activity_content ) {
- // make filter magic happen here...
- return $activity_content;
- };
- // add the filter
- add_filter( 'bp_get_activity_content_body', 'filter_bp_get_activity_content_body', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_get_activity_content_body', 'filter_bp_get_activity_content_body', 10, 1 );
Defined (6)
The filter is defined in the following location(s).
- /bp-themes/bp-default/_inc/ajax.php
- $content = apply_filters( 'bp_get_activity_content_body', $activity->content );
- /bp-templates/bp-legacy/buddypress-functions.php
- $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $activity->content, &$activity ) );
- /bp-activity/classes/class-bp-activity-list-table.php
- $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $item['content'], &$activity ) );
- /bp-activity/bp-activity-template.php
- return apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
- /bp-activity/bp-activity-functions.php
- $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $activity->content, &$activity ) );
- $content = apply_filters_ref_array( 'bp_get_activity_content_body', array( $params['content'], &$original_activity ) );