@futureyoon
Active 9 months, 3 weeks ago
-
Fábio Roque replied to the topic Enable shortcode in BuddyPress activity feed in the forum Installing BuddyPress 2 years, 7 months ago
Hi @futureyoon
Try this
/**
* Render shortcodes on feed posts
*/
function enable_shortcode_bp_activity($content) {
$content = stripslashes($content);
return do_shortcode($content);
}add_filter('bp_get_activity_content_body', 'enable_shortcode_bp_activity', 0);