Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,046
- How-to & Troubleshooting
- 129,728
- Creating & Extending
- 25,799
- Requests & Feedback
- 9,505
- Third Party Plugins
- 9,793
- Showcase
- 3,316
- Ideas
- 1,375
- Miscellaneous
- 9,181
-
or you can keep in bp-custom.php, if you hook it to init action.
add_action("init","remove_autop_filters_from_activity");
function remove_autop_filters_from_activity(){
remove_filter( 'bp_get_activity_content_body', 'wpautop' );
remove_filter( 'bp_get_activity_content', 'wpautop' );
}
Actually, the remove filter should be called after the filter is actually added.