📜  woocommerce 产品图像在悬停禁用时缩放 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:56.427000             🧑  作者: Mango

代码示例1
/* Disable zoom on Woocommerce Product Images */

// Append to your child theme's functions.php
function remove_image_zoom_support() {
    remove_theme_support( 'wc-product-gallery-zoom' );
}
add_action( 'wp', 'remove_image_zoom_support', 100 );