WordPress 6.0 To Ship New Block Locking Feature

WordPress 6.0 has several new features that should make any extender happy about building on top of the platform. However, one of the more advanced tools is the ability to lock blocks, which can be used to prevent specific blocks from being moved or removed. The upcoming release includes a new “Lock” setting in the block toolbar’s options dropdown, as …

How to Make WP_Query Arguments Filterable

The WP_Query class is very powerful. It lets you create your own custom queries to run anywhere in your WordPress site – in the main content, in the sidebar or anywhere else you like. It’s something I use a lot, either in custom template files or in areas outside the content such as the sidebar or footer. And I’ve lost …

How to Improve First Contentful and Meaningful Paint

You’re not optimizing your site to please a stopwatch. You’re optimizing your site for real people. So how can you determine if you’re achieving your goal? You need to include metrics such as First Contentful Paint and First Meaningful Paint in your performance assessment in order to measure how your site is performing from your user’s perspective. Both will tell …

How to Install XAMPP and WordPress on Windows Localhost

Once you’ve experienced speed and reliability, there’s no going back. Remember the era before high-speed internet, when you had to wait for videos to buffer? Awful times. Three cheers for the modern internet speeds! If you’re used to developing your sites on a live server, that’s exactly what shifting to a local development environment such as XAMPP would feel like. …

How To Properly Add jQuery Scripts To WordPress

WordPress has been in our lives for over 16 years, yet the method of adding scripts to themes and plugins still remains a mystery for many developers. In this article we finally put the confusion to rest. Since it’s one of the most commonly used Javascript libraries, today we’re discussing how to add simple jQuery scripts to your WordPress themes …

Ask the Bartender: What Happens When Block Markup Changes?

I’m a developer that has started developing with Gutenberg recently. There are a bunch of amazing benefits and features, but there are also a ton of drawbacks, inconsistencies, as well as absolutely awful and outdated documentation. One of the worst aspects of Gutenberg from a developer perspective has been block validation. Consider the following scenario. I build a custom (non-dynamic) …