Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Adding extra html to activity updates is being filtered

@shanebp

Moderator

You should be able to add to the allowed tags array like so:

function fred_whitelist_tags_in_activity( $allowedtags ) {
    $allowedtags['a']['target'] = array();
    return $allowedtags;
}
add_filter( 'bp_activity_allowed_tags', 'fred_whitelist_tags_in_activity' );

You may want to do an add_filter / remove_filter in your plugin so that you don’t open up the allowed tags for other activity items.

Skip to toolbar