Replies
I have tried something like this but it deletes comments (does not collapse) and the same stream posts are still loading
function hide_comments(){ if ( ! bp_is_activity_directory() ) { return $r; } $r['display_comments'] = false; return $r; }' add_action( 'bp_after_has_activities_parse_args', 'hide_comments');
- This reply was modified 4 years, 7 months ago by rav.
Hi @Brajesh Singh
I tried the possibilities that I found on the web:
wp_oembed_remove_provider ( ‘#http: // (www \.)? YouTube \ .com / watch. * and #’);
wp_oembed_remove_provider ( ‘#https: // (www \.)? YouTube \ .com / watch. * and #’);
wp_oembed_remove_provider ( ‘#http: // youtu \ .be /.*# I’);
wp_oembed_remove_provider ( ‘#https: // youtu \ .be /.*# I’);Unfortunately it doesn’t work. Now, however, another question came to my mind.
Can you change the embedding to display only image instead of video?
Even for links from YouTube?Hi @Brajesh Singh
Thank you for your answer.
I am sorry but I have another question and please answer. When someone comments on a graphic placed in an activity stream, information appears, for example “rav commented on mercime’s photo”
How do you turn off this notifications on your activity stream?