@dswd
11 years, 6 months ago
Hi,
I have been scouring the internet to find a way to disable oEmbed from the activity stream. I have found a couple solutions and they have not worked.
Please help.
WP: 3.5.1 BP: 1.7
I have tried this and it did not work
/** . * Disabled oEmbed from WordPress 3.5 */ remove_filter ( 'the_content' , array ( $GLOBALS [ 'wp_embed' ], 'autoembed' ), 8 );
@mercime
answered by modemlooper at https://buddypress.org/support/topic/how-to-use-remove_filter/
@modemlooper
Try these:
remove_filter( 'bp_get_activity_content_body', 'autoembed', 8 ); remove_filter( ‘bp_get_activity_content’, ‘autoembed’, 8 );
In the future, please refrain from replying to a 3 year old topic. Create a new one. 🙂