Woocommerce filter to set product default image

In function.php :

// Add action to hook into the approp
add_filter( ‘woocommerce_placeholder_img_src’, myfun’ );

/**
* Function definition to new placeholder image URL.
*/
function myfun( $image_url ) {
$img=get_option(‘home’);
$img_url = $img.”/wp-content/themes/copier/images/border2.jpg”;  // change this to the URL to your custom placeholder
return $img_url;
}