Custom Empty Cart Message
Replaces "Your cart is currently empty" on the classic cart page with a friendlier message of your own.
Opens WPIDE on
Code
add_filter( 'wc_empty_cart_message', function () {
return 'Your cart is empty for now. Browse our bestsellers and find something you love.';
} );
Notes
The Cart block has its own empty cart template you can edit in the Site Editor.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.