Astra_Woocommerce::product_flip_image()
Product Flip Image
Description
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function product_flip_image() { global $product; $hover_style = astra_get_option( 'shop-hover-style' ); if ( 'swap' === $hover_style ) { $attachment_ids = $product->get_gallery_image_ids(); if ( $attachment_ids ) { $image_size = apply_filters( 'single_product_archive_thumbnail_size', 'shop_catalog' ); echo apply_filters( 'astra_woocommerce_product_flip_image', wp_get_attachment_image( reset( $attachment_ids ), $image_size, false, array( 'class' => 'show-on-hover' ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } }
Expand full source code Collapse full source code View on Trac