Tag: PHP

WP-rocket aggressive purge

In some cases WP-rocket cache plugin empties all cached files although all you do is update a post or product. Or for me when a customer does a purchase that changes the stock value for a WooCommerce product. What I

Read More »

Cleanup session in WooCommerce

There are some pretty simple ways to clear a session with WooCommerce that can be used with code when you need a user to get a brand new session with nothing old getting in the way. Can be used if

Read More »

WooCommerce – really slow wc_get_product_class

In my investigation and work to make WooCommerce perform a little bit better i found this little surprise! The little helper wc_get_product_class to print correct class names in the wrapper element in html for me took over 100ms per product.

Read More »

WooCommerce zero trimming decimal

I found this little neat thing when messing around with decimals in WooCommerce. Nice of them to provide this little filter! But even better if it was a setting in wp-admin, but until that is added, this is a quite

Read More »

Elementor Custom Modules

Creating lots of modules in you theme for Elementor? Do you want to skip the step of loading the files and classes manually? I use this code which makes things very handy, just create the php-file with the same name

Read More »
Cart