facetwp use woocommerce placeholder image in facetwp template

<?php
/** replace the featured image with placeholder if empty **/
add_filter( 'facetwp_builder_item_value', function( $value, $item ) {
	if ( 'featured_image' == $item['source'] && empty( $value ) ) { 
		$value = wc_placeholder_img( $item['settings']['image_size'] );
	}
	return $value;
}, 10, 2 );