Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Images in wire


Roy McKenzie
Participant

@roymckenzie

Hey @Nicola. I tried

function my_allowed_tags($allowedtags){
$allowedtags .= <img>;
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\' );

It didn\’t work because i didnt have quotes around <img> so i tried

$allowedtags .= \'<img>\';

and

$allowedtags .= \'img\';

but no dice! the last one did show \’img\’ in the wire when

<img src=\"http://whatever.com/image.jpg\">

was published.

Skip to toolbar