Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to use remove_filter?

  • @stoppays

    Participant

    I’ve gone through WordPress’s Codex but I can’t grasp how remove filter functions:

    http://codex.wordpress.org/Function_Reference/remove_filter

    Lets say that I’m trying to remove ‘bp_add_friend_button’

    I’m guessing that the $function_to_remove would be bp_add_friend_button

    Where do I find out the following info what the $tag and $priority?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @johnjamesjacoby

    Keymaster

    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.

    @dswd

    Participant

    how can we remove the oEmbed from the activity stream

    @modemlooper

    Moderator

    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