Code Snippet
Correct the grammar rule for noun agreement after zero
How do you make a noun agree when it's preceded by zero? Zero expresses a null quantity, and in French, this quantity is treated as a plural in everyday usage. Here's a snippet to automate this grammar rule.
Read MoreHow to sort your categories by most recent update
This snippet allows you to automatically reorganize your categories based on their most recent update date.
Read MoreAdd a “New” badge to recent products
With this new snippet, you'll be able to display a "New" CSS badge on products recently added to your online store. A "New" badge helps distinguish these products effortlessly, boosting clicks and giving your store a fresh feel.
Read MoreHide specific WooCommerce categories on the frontend
With this new snippet, you will be able to modify the breadcrumbs on WooCommerce product pages and hide certain specific categories in the taxonomy lists of the public site.
Read MoreLimit the number of loyalty points with this WordPress snippet
With this new snippet, we'll show you how to set a maximum points cap that your customers cannot exceed, regardless of the number of purchases or loyalty actions performed.
Read MoreAutomatically set WooCommerce orders to Completed status
With this new snippet, we'll show you how to automatically change your orders that meet certain criteria from "Pending" to "Completed." This is very useful if you only sell digital products. By default, WooCommerce sets orders to "Completed" if they contain only digital products…
Read MoreAdd a user field in the my account page
With this new snippet, we will show you how to add a custom field to users’ profiles on their account details page. In this example, we will add the birthday field. However, you can add any type of field.
Read More