Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Remove HTML tags excluding image tag from activity stream

@danbp

Participant

Hi @chatty24,

Instead of disallowing, allow those you need. 😉

//  allow tags on updates form
function bpfr_whitelist_tags_in_activity( $allowedtags ) {
    $allowedtags['img']['target'] = array();    
    return $allowedtags;
}
add_filter( 'bp_activity_allowed_tags', 'bpfr_whitelist_tags_in_activity' );

Reference: bp-activity-filters.php:184

Skip to toolbar