Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Images in wire


Roy McKenzie
Participant

@roymckenzie

Allowing if someone wants to post an image to a wire with the <img> tag, it wont get striiped out and so it will show up in the activity feeds

I added this to my bp-custom.php hoping it would fix my issue.

<?php
function my_allowed_tags($allowedtags){
$allowedtags['img'] = array();
return $allowedtags;
}
add_filter( 'edit_allowedtags', 'my_allowed_tags' );

add_filter( 'bp_get_activity_content', 'my_allowed_tags' );

add_filter( 'bp_get_wire_post_content', 'my_allowed_tags' );

?>

Skip to toolbar