$html .= sprintf( '<img src="%s" alt="%s" class="wp-post-image" />', esc_url( wc_placeholder_img_src( 'woocommerce_single' ) ), esc_html__( 'Awaiting product image', 'woocommerce' ) );
$html .= sprintf( '<img src="%s" alt="%s" class="wp-post-image" />', esc_url( wc_placeholder_img_src( 'woocommerce_single' ) ), esc_html__( 'Awaiting product image', 'woocommerce' ) );
'zoom_enabled' => apply_filters( 'woocommerce_single_product_zoom_enabled', get_theme_support( 'wc-product-gallery-zoom' ) ),
'zoom_options' => apply_filters( 'woocommerce_single_product_zoom_options', array() ),
'photoswipe_enabled' => apply_filters( 'woocommerce_single_product_photoswipe_enabled', get_theme_support( 'wc-product-gallery-lightbox' ) ),
'photoswipe_options' => apply_filters(
img = document.createElement('img'),
$img = $(img),
единственный выход - это копировать файл jquery.zoom.js, заново его подключать и изменять ?
$(document).ready(function() {
$('.zoomImg').attr('role', 'lightbox');
});
add_action('wp_enqueue_scripts', 'add_custom_script');
function add_custom_script(){
wp_enqueue_script( 'custom', get_template_directory_uri() . '/js/custom.js');
}
wp_enqueue_script( 'custom', get_template_directory_uri() . '/js/custom.js');