Updates, Tips & Tricks

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

How to change the placeholder image for WooCommerce

27 February

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