6 years, 8 months ago
I’ve gone through WordPress’s Codex but I can’t grasp how remove filter functions:
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?
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.
3 years, 1 month ago
how can we remove the oEmbed from the activity stream
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. 🙂
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service