Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to use remove_filter?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    You need to use the same tag and priority that original add_filter used. Basically just copy and replace the line of code where the filter is originally added, and change “add” to “remove”

    If you have a filter you’re trying to remove and can’t find where it’s added, ask here and one of us can chime in.

    Avatar of dswright
    dswright
    Participant

    @dswd

    how can we remove the oEmbed from the activity stream

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @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. :)

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

The topic ‘How to use remove_filter?’ is closed to new replies.