Category: Development

  • How To Add Text Before/After Product Prices in WooCommerce Programmatically

    How To Add Text Before/After Product Prices in WooCommerce Programmatically

    In WooCommerce, product prices by default are displayed as “$5.00” for simple products and “$5.00 – $20.00” for variable products. Ever wanted to add text before or after the pricing display, like this: “Only $5.00” or “$5.00 limited time only”? There are a number of plugins that can help do this, but maybe you want to do…

    ·

  • How to Change How Long WordPress Keeps Trashed Posts

    How to Change How Long WordPress Keeps Trashed Posts

    When you delete a post or page in WordPress, it doesn’t vanish right away. Instead, it moves to the trash, where you can restore it if you made a mistake. WordPress automatically empties the trash every 30 days, but 30 days doesn’t fit every website. Some site owners want faster cleanup to reduce database size,…

    ·

  • Use Query Monitor to Profile Running Time and Memory Usage of WordPress Code

    Use Query Monitor to Profile Running Time and Memory Usage of WordPress Code

    Query Monitor is a WordPress plugin that includes several debugging tools, including a profiling feature that you can use to investigate running time and memory usage of specific code. What is Query Monitor? As you’ve come across this blog post, you probably already know what Query Monitor is, skip this if you do! Query Monitor…

    ·

  • How to Amend the Big Image Size Threshold in WordPress

    How to Amend the Big Image Size Threshold in WordPress

    If you’ve ever tried to upload an image in WordPress that has large dimensions, you may have noticed that the resulting file has smaller dimensions than the original image. This is because WordPress has a threshold for the maximum image dimensions, and if your image is higher than that threshold, it will get scaled. You…

    ·