Re: Why is BuddyPress stripping my object or embed tags?
It’s a security hole and it’s closed by default. If you choose to open it you can modify the filters that bp uses. Example is the forums filter system:
bp_forums_add_allowed_tags() in ../bp-forums/bp-forums-filters.php is the filter you can extend.
function my_allowed_tags($allowedtags){
$allowedtags = array();
return $allowedtags;
}
add_filter( ‘edit_allowedtags’, ‘my_allowed_tags’ );
Create a file called bp-custom.php and put it in the /mu-plugins directory with the rest of the main bp files. Put that function in there. It’ll get loaded by bp.
Other components have a /bp-<component>/bp-<component>-filters.php file also.