Hide all WordPress admin notices for non-admin users

If you gave wp-admin access to some users as editor or contributor etc, they will see those WordPress admin notices, even though those notices are mostly meaningless for them. Not ideal for end users, and often can be confusing. So we will turn off all admin notices for non-admin users… Read More »

Hide WordPress update notices for non-admin users

If you gave wp-admin access to some users as editor or contributor etc, they will see those update WordPress notices, even though they can’t perform the update. This is not very comprehensive behavior. So we are going to turn off update notices for non-admin users from wp-admin dashboard by removing… Read More »

Show used coupon details in WooCommerce order email

You may need to show coupon details in the WooCommerce order email. This option is not available by default. We can use woocommerce_email_after_order_table action hook to show used coupon details in order email. This will show coupon details after the order table in the order email. We can get coupon… Read More »

Show sold out badge to WooCommerce Store

If you are looking for a sold out badge for WooCommerce store out of stock products without a plugin, you are at the right place. Keep going through the article to easily accomplish your goal. A nice ‘sold out’ badge on products image, on the shop page or product category… Read More »

Deny PO Box addresses in WooCommerce

Many of you may not want to allow Post Office Box as shipping address. There is no default option in WooCommerce to do it. We can use woocommerce_after_checkout_validation action hook to check if inputted shipping address contains PO Box address or not. Following code checks for the string pobox in… Read More »