Skip to:
Content
Pages
Categories
Search
Top
Bottom

disable auto embeds in activity stream


  • 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)

  • 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;
    }
    

    mattg123
    Participant

    @mattg123

    @megainfo

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


    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)
  • The topic ‘disable auto embeds in activity stream’ is closed to new replies.
Skip to toolbar