Skip to:
Content
Pages
Categories
Search
Top
Bottom

disable auto embeds in activity stream

  • Avatar of mattg123
    mattg123
    Participant

    @mattg123

    Hi is there anyway of disabling auto embeds in the activity stream, and keep them elsewhere on a site?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of meg@info
    meg@info
    Participant

    @megainfo

    Hi @mattg123, try this code in your functions.php

    
    define('BP_EMBED_DISABLE_ACTIVITY', true);
    define('BP_EMBED_DISABLE_ACTIVITY_REPLIES', true);
    

    if it’s not work try this code :

    
    add_filter('bp_use_oembed_in_activity', 'never_use_oembed_in_activity');
    add_filter('bp_use_embed_in_activity_replies', 'never_use_oembed_in_activity');
    function never_use_oembed_in_activity(){
       return false;
    }
    
    Avatar of mattg123
    mattg123
    Participant

    @mattg123

    @megainfo

    thanks for the suggestion, I have found a way to fix the problem created and still have the embeds.

    Avatar of ljmac
    ljmac
    Participant

    @ljmac

    I applied meg@info‘s second code in bp-custom.php and it works perfectly – thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.