Remove the closing slash and add EOL in CSS output in Autoptimize

Remove the closing slash and add EOL in CSS output in Autoptimize on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'autoptimize_filter_css_bodyreplacementpayload', function( $html ){
    return str_replace( '/>', '>' . PHP_EOL , $html );
});

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.