Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,848
- Creating & Extending
- 25,881
- Requests & Feedback
- 9,529
- Third Party Plugins
- 9,828
- Showcase
- 3,316
- Ideas
- 1,386
- Miscellaneous
- 9,177
-
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.