bp_blogs_activity_content_set_temp_content()
Function which set the temporary content on the blog post activity.
Description
Source
File: bp-activity/bp-activity-filters.php
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 | function bp_blogs_activity_content_set_temp_content() { global $activities_template ; $activity = $activities_template ->activity; if ( ( 'blogs' === $activity ->component ) && isset( $activity ->secondary_item_id ) && 'new_blog_' . get_post_type( $activity ->secondary_item_id ) === $activity ->type ) { $content = get_post( $activity ->secondary_item_id ); // If we converted $content to an object earlier, flip it back to a string. if ( is_a ( $content , 'WP_Post' ) ) { $activities_template ->activity->content = '​' ; } } } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.5.5 | 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.