bp_get_activity_feed_item_description()
Return the activity feed item description.
Description
Return
(string) The activity feed item description.
Source
File: bp-activity/bp-activity-template.php
3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 | function bp_get_activity_feed_item_description() { global $activities_template ; // Get the content, if exists. $content = ! empty ( $activities_template ->activity->content ) ? $activities_template ->activity->content : '' ; // Perform a few string conversions on the content, if it's not empty. if ( ! empty ( $content ) ) { $content = ent2ncr( convert_chars( str_replace ( '%s' , '' , $content ) ) ); } /** * Filters the activity feed item description. * * @since BuddyPress 1.0.0 * * @param string $content The description for the activity feed item. */ return apply_filters( 'bp_get_activity_feed_item_description' , $content ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.