[Fix] Creation of dynamic property is deprecated since PHP 8.2

[Fix] Creation of dynamic property is deprecated since PHP 8.2

Since PHP 8.2, adding a new property to an object at runtime is deprecated, and such that you shouldn’t do this anymore. Example: When you do this, the property $tiems is dynamically created as untyped public properties, but in the future, you

Add New Custom Product Tabs in WooCommerce

Add New Custom Product Tabs in WooCommerce

Heads up! This article contains PHP code and is intended for developers. If you want to add new custom tabs on the WooCommerce products page without any code, I recommend checking out the Custom Product Tab Manager Plugin. The plugin

“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

× WhatsApp