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,

WPForce Logout plugin hits 50 5-star reviews!

WPForce Logout plugin hits 50 5-star reviews!

I’m thrilled to announce that the WPForce Logout plugin has received 50 5-star ⭐⭐⭐⭐⭐ reviews on WordPress.org! Yay! 🎉 This is a milestone for me, and I couldn’t be more thrilled about the positive feedback I’ve received from the users.

WooCommerce hook after successful payment :)

WooCommerce hook after successful payment :)

Are you using WooCommerce on your store and looking to do something after a successful payment on your store? The WooCommerce hook “woocommerce_payment_complete” might be helpful to you. Below is the usage of the hook: With the parameter, $order_id you

× WhatsApp