is_plugin_active( 'autoptimize/autoptimize.php' ) && 'on' === get_option( 'autoptimize_css' ) ) { return true; } } /** * Disable WP Rocket JS minification field if Autoptimize JS minification is enabled * * @since 2.9.5 * @author Remy Perona * * @return bool|null True if it is active */ function rocket_maybe_disable_minify_js() { if ( is_plugin_active( 'autoptimize/autoptimize.php' ) && 'on' === get_option( 'autoptimize_js' ) ) { return true; } } /** * Disable WP Rocket async CSS field if Autoptimize async CSS is enabled * * @since 2.10 * @author Remy Perona * * @return bool|null True if it is active */ function rocket_maybe_disable_async_css() { if ( is_plugin_active( 'autoptimize/autoptimize.php' ) && 'on' === get_option( 'autoptimize_css_defer' ) ) { return true; } }