Automattic\WooCommerce\Blocks
AssetsController::skip_boost_minification_for_cart_checkout
Skip Jetpack Boost minification on older versions of Jetpack Boost where it causes issues.
Method of the class: AssetsController{}
No Hooks.
Returns
Mixed
.
Usage
$AssetsController = new AssetsController(); $AssetsController->skip_boost_minification_for_cart_checkout( $do_concat, $handle );
- $do_concat(mixed) (required)
- Whether to concatenate the script or not.
- $handle(mixed) (required)
- The script handle.
AssetsController::skip_boost_minification_for_cart_checkout() AssetsController::skip boost minification for cart checkout code WC 9.8.5
public function skip_boost_minification_for_cart_checkout( $do_concat, $handle ) { $boost_is_outdated = defined( 'JETPACK_BOOST_VERSION' ) && version_compare( JETPACK_BOOST_VERSION, '3.4.2', '<' ); $scripts_to_ignore = array( 'wc-cart-checkout-vendors', 'wc-cart-checkout-base', ); return $boost_is_outdated && in_array( $handle, $scripts_to_ignore, true ) ? false : $do_concat; }