Website Building » WooCommerce » How Do I Turn Off WooCommerce Messages?

How Do I Turn Off WooCommerce Messages?

Last updated on October 1, 2022 @ 10:42 pm

If you’re using WooCommerce to power your online store, you may have noticed that it displays various messages throughout the shopping experience. For example, when a customer adds an item to their cart, they’ll see a message thanking them for their purchase. While these messages can be helpful in some cases, they can also be annoying if you’re trying to create a more streamlined shopping experience for your customers.

Fortunately, there’s an easy way to disable these messages if you don’t want them to be displayed. Simply add the following code snippet to your functions.php file:

add_filter( 'woocommerce_checkout_show_messages', '__return_false' );

This code tells WooCommerce not to display any messages on the checkout page. You can also use this same technique to disable other types of messages, such as those that are displayed when an item is added to the cart or when an order is placed.

PRO TIP: If you are using WooCommerce to sell products on your WordPress site, you may have noticed that WooCommerce displays various messages throughout the checkout process. While these messages can be helpful, you may want to disable them if you find them annoying.

To disable WooCommerce messages, go to your WordPress Dashboard and navigate to WooCommerce > Settings. On the Settings page, click the Checkout tab and scroll down to the Checkout Options section. In this section, you will see an option to “Enable Order Notes.” Simply uncheck this box and click the Save Changes button at the bottom of the page.

Conclusion

Disabling WooCommerce messages is easy to do with a few lines of code. By adding the code snippet above to your functions.php file, you can prevent any messages from being displayed on the checkout page. This can be helpful if you’re trying to create a more streamlined shopping experience for your customers.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.