Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1.             $image       = wp_get_attachment_image( $attachment_id, apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ) );
  2.             $image_class = esc_attr( implode( ' ', $classes ) );
  3.             $image_title = esc_attr( get_the_title( $attachment_id ) );
  4.  
  5.             echo apply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '<a href="%s" class="%s" title="%s"  rel="prettyPhoto[product-gallery]">%s</a>', $image_link, $image_class, $image_title, $image ), $attachment_id, $post->ID, $image_class );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement