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…

  • 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…

  • Check if one variation is enabled or disabled in WooCommerce

    One of my clients had the need to sometime disable one variation of many, but to avoid deleting and adding again they use en little checkbox Enable in…

  • Use of attachment_url_to_postid in WordPress

    I did some image lookup via ajax from the Elementor Image Gallery, a place where I only had the image-url to get a meta data field attached to…

  • 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…

  • WooCommerce – find default variation performance

    My shop page was very slow when I had over 100 products, REALLY slow. So I had to investigate what happened. So here are some points. Find default…

  • 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…

  • 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…