“woocommerce_new_order” – hook after the order is processed

“woocommerce_new_order” – hook after the order is processed

Are you looking to do something after the order is processed? Then, the “woocommerce_new_order” hook is what you’re looking for. Usage: WooCommerce Customer Journey plugin uses this hook (woocommerce_new_order) to add the customer’s journey map to its database table “_cjforwoo”,

CSS Table Layout: Making “x” items per row

CSS Table Layout: Making “x” items per row

While there are several ways to make “x” items per row using CSS. Modern methods are using CSS Grid and CSS Flexbox. Table Layout is an older method but it has some advantages over modern methods such as wide browser

Load Assets Conditionally in your WordPress Plugin

Load Assets Conditionally in your WordPress Plugin

wp_enqueue_scripts hook is the proper hook to enqueue assets (despite the name, both CSS & JS) in the front end. However, if you enqueue assets this way, like all the examples on that documentation – the assets will be loaded

CSS Grid: Making “x” items per row

CSS Grid: Making “x” items per row

By default, the items tend to fit into one line. With CSS grid-template-columns property, we can specify how many items to insert in a row. Let’s take an example with the following HTML Structure: To make 3 items per row,

Add custom content after order notes in WooCommerce checkout

Add custom content after order notes in WooCommerce checkout

Are you using WooCommerce for your online store and looking to add some custom content after order notes in the checkout form? The “woocommerce_after_order_notes” hook is triggered after the order notes section is displayed on the checkout page. For example,

× WhatsApp