Tutorials

  • Host Your WordPress Plugins on GitHub and Automate Plugin Packaging

    Let’s talk plugin distribution. Hosting your plugins on GitHub provides powerful benefits such as version control, collaboration, and easy sharing. But distributing your plugin as a proper .zip file for users can be tedious, especially when you need to exclude unnecessary files like .git folders, node_modules, and .DS_Store. This guide walks you through: Step 1:…

    Read More

  • Improve CLS scores by dynamically setting image width and height

    While working on WordPress performance optimization for myself and for my clients, I’ve come across an issue that repeatedly affected CLS scores in a negative way. Luckily for myself (and now you, too), I created a fix that has helped reduced CLS when rouge images without explicit width and height attributes are the offenders. For…

    Read More

  • How to customize the style of your WordPress login screen

    This post is going to show you how to add a few small code snippets to change the appearance of the WordPress login screen. We’ll walk through the process of changing the default WordPress logo to your own using the login_headertext filter that was added in WordPress 5.2 And I’m going to break down how…

    Read More

  • Set Featured Images Programmatically in WordPress

    Recently, I found myself needing to auto-set 300+ featured images for a customers WooCommerce store. After the initial panic phased itself out, I took a couple of deep breathes and realized I’ve done a few kinda-sorta similar things with custom functions in the past. After a few hours of hacking the code up and reformatting…

    Read More