Skip to content

Instantly share code, notes, and snippets.

@Tabrisrp
Last active February 20, 2018 20:49
Embed
What would you like to do?
Minify inline JS
<?php
add_filter( 'rocket_minify_html_options', 'wp_rocket_minify_inline_js' );
function wp_rocket_minify_inline_js( $options ) {
$options['jsMinifier'] = 'rocket_minify_inline_js';
return $options;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment