Updates, Tips & Tricks

Updates as Released, Plus My Personal Collection Of WordPress Best Practices

How to Change the Placeholder Image in WooCommerce Within functions.php file

02 April

Simple:

// Add a custom placeholder image location
add_filter( 'woocommerce_placeholder_img_src', 'custom_placeholder_img_src');
function custom_placeholder_img_src () {
    return '/assets/placeholder.png';
}
No comments yet.

Leave a Reply