Plugin Updates
This commit is contained in:
@@ -15,17 +15,17 @@ class WooCommerce {
|
||||
* @return void
|
||||
*/
|
||||
public function init() {
|
||||
add_action( 'woocommerce_single_product_summary', [ $this, 'variable_products_webp_compat' ] );
|
||||
add_action( 'woocommerce_single_product_summary', [ $this, 'variable_products_nextgen_compat' ] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add Variable Products Webp Compatibility.
|
||||
* Add Variable Products Next-gen images Compatibility.
|
||||
*
|
||||
* @since 1.10.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function variable_products_webp_compat() {
|
||||
public function variable_products_nextgen_compat() {
|
||||
global $product;
|
||||
|
||||
if ( ! isset( $product ) || ! $product->is_type( 'variable' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user