Hook for single product thumbnail

Here’s what I believe is an updated version of one of the other answers’ comments. This function replaces the width and height attributes, but OP wanted to change the src. I imagine the solution would be similar, except using preg_replace to replace the src instead.

add_action('woocommerce_single_product_image_thumbnail_html','remove_single_product_image_attrs',10,2); 

function remove_single_product_image_attrs( $sprintf, $post_id ){ 
  return preg_replace( '/(width|height)="\d*"\s/', "", $sprintf ); 
} 

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)