Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,892
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
Have found the solution by myself. If anyone interested, here’s the code i have added to my bp-custom.php. i think it works as well in the themes functions.php.
function remove_wpautop_from_buddypress() {
if( bp_current_component() ) {
remove_filter( 'the_content', 'wpautop', 99 );
}
}
add_action('bp_init', 'remove_wpautop_from_buddypress');
bp_current_component() is true, if you be on a buddypress page, so wpautop is only disabled there.
But i still wonder, why it’s necessary to do something like that. 😉