Category: WordPress

Posts about WordPress, plugin development, and dev-tips.

  • wp-cli online installer

    Do you want a one liner to install, chmod and move the wp-cli when you install a new site? Here it is! Just to avoid to copy and…

  • Reset WordPress user password

    WordPress has a very good guide for doing this here. But in short it really is this mysql command that does the magic, just replace the prefix wp_…

  • Simple Expand for WordPress

    This plugin makes it easy to get an expandable text, or a read more functionality inside a post or page. Install the plugin, search for Simple Expand or…

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