add_filter('tiny_mce_before_init', 'my_tiny_mce_before_init_filter',10,3); function my_tiny_mce_before_init_filter( $init_array ) { $init_array['remove_linebreaks'] = false; return $init_array; }