Code snippet to change the default image of woocommerce placeholders.

add_filter('woocommerce_placeholder_img_src', 'custom_woocommerce_placeholder_img_src');

function custom_woocommerce_placeholder_img_src( $src ) {
	$upload_dir = wp_upload_dir();
	$uploads = untrailingslashit( $upload_dir['baseurl'] );
	$path_to_image = '2020/09/preview_image.png';
	$src = $uploads . '/'.$path_to_image ;
	return $src;

Add this code the the functions.php of the parent or child theme or install the code snippets plugin and copy and paste the code into a new snippet

Need a website, consultation or customisation? Let’s speak