Skip to content

Instantly share code, notes, and snippets.

add_filter('wpdesk_allegro_before_wpautop', 'af109_wpdesk_allegro_before_wpautop' );
function af109_wpdesk_allegro_before_wpautop( $content ) {
return str_replace( array("\r\n", "\r", "\n"), "\n\n", $content );
}