Home > Docs > Smart Coupons for WooCommerce > Hide ‘My Coupons’ and ‘Store Credits’ from My Account in WooCommerce

Hide ‘My Coupons’ and ‘Store Credits’ from My Account in WooCommerce

Last updated on September 11, 2024

Smart coupon for WooCommerce plugin, by default, lists My Coupons and My Store Credits on the My Accounts page.

That is, customers can view the applicable Coupons and Store Credits from the My Accounts section as shown below

Smart Coupons for WooCommerce - My account section
Smart Coupons for WooCommerce – My account section

Code snippet to hide

However, store owners can hide My coupons or My store credits from the My Account page by using a code snippet.

  • From your WordPress dashboard, go to Appearance > Theme editor.
  • Then, add the below given code snippet at the bottom end of functions.php of the active theme file.

After inserting the code, customers will not be able to view coupons or store credits from My Accounts.