Sign up to receive my new posts in your inbox, along with some links and thoughts from the webdev world. No more than once a week. Browse the archive.
Let’s build a custom WordPress block with a focus on editable image fields. Using the block-components library from 10up and a custom image function I wrote this year, we’ll go through every file in our custom block together.
Supposedly, this is what the wc_mail() function is supposed to do: help you send an email the way you might with wp_mail() BUT include your fancy WooCommerce template/design/styles around the content. Well, it didn’t seem to be working for us, so after breaking it apart, we took the core function and wrote what we think […]
These days I’m trying to use vanilla JS as much as possible, but more often than not, I find myself writing jQuery when in WordPress.
Grabbing the thumbnail URL for a video hosted on YouTube has always been simple. Just stick the video’s unique ID into a URL and bam- there’s your image. When it came to the Vimeo API, on the other hand, it used to be simple. Recently Vimeo has been in the process of sunsetting it’s classic […]
A Beginner’s Guide to the WordPress REST API on Toptal.com I wrote a post for the Toptal.com blog. The article covers the WordPress REST API, as well as provides an introduction to REST APIs in general. I offer an example use case that you can follow along, and discuss some future potential of the project. […]
I’m a big fan of the WordPress REST API. I’ve been writing about it here on my site as well as other places. I’ve been using it in production, including in the iOS/Android app NMO Resources which syncs to a WordPress-based website. It’s become a fun new way to interact with data, especially outside of the […]