Hello,
It works! Except that the first return must be true and the second false.
Thank you!
LATER EDIT BELOW
This code totally works:
add_filter('autoptimize_js_include_inline', function( $state ) {
if ( is_page( 'YOUR_PAGE_SLUG_HERE' ) ) {
return false;
}
return true;
});
-
This reply was modified 1 year, 10 months ago by rexviber.