Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to use remove_filter?

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

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

    how can we remove the oEmbed from the activity stream


    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.
Skip to toolbar