It seems my crappy little unadvertised blog here has finally garnered enough attention from bots to start getting hit with spam. My first step toward world domination has been taken.
Author: chairmanbrando
Include Gutenberg patterns in your theme templates
Patterns are pretty nice when building a site for a client since they can be reused and inserted easily. If they're not the synced sort, ones that are updated everywhere at once, they can even be inserted and then edited for the needs of a given page or post.
Keep on readin' on Include Gutenberg patterns in your theme templates⟶
Remove Shorts from YouTube RSS feeds
RSS ain't dead yet, and some of us weirdos use it to keep track of our favorite YouTube channels. Unfortunately, the default RSS feed is full of junk: littered with Shorts and livestreams (active or past), making it quite annoying to sift through to find the proper videos for which we wanted to "subscribe" in the first place.
Keep on readin' on Remove Shorts from YouTube RSS feeds⟶
Simpler WordPress Ajax calls
This has been possible for years, but it's hard to know everything, you know? That's especially true when the thing you want to use isn't even documented and it's up to your fellow nerds to figure it out.
Firefox finally supports custom search engines
It's wild that it's taken this long, and it still requires some fussing around by the user to enable the feature (for now), but at least it's here. And with it we can make the smoothest Google declutterer of all! Previous iterations here:
Keep on readin' on Firefox finally supports custom search engines⟶
A rolling bike gathers no dust
It's hard to get back into something once the habit is broken. They say it takes three weeks or so to form a new habit, but at this point I'm pretty sure "habit" is not the word for this. After all, if a so-called habit can be broken so easily, doesn't that disqualify it from being considered habitual? I'd think so.
WordPress rewrites your editor styles… sometimes
I'm using the old "2021" theme as a parent theme for this site. Why? Because it's the last of the default themes not based in Gutenberg blocks. So-called "classic" themes are the best themes. Fight me.
Keep on readin' on WordPress rewrites your editor styles… sometimes⟶
Add a keyboard shortcut to preview a WordPress post in a new tab
I use post previews constantly. There's a reason I wrote code to move my drafts and scheduled posts to the top of the posts list! Imagine my disappointment, then, when I didn't see any keyboard shortcuts within Gutenberg to open a post preview in a new tab.
Keep on readin' on Add a keyboard shortcut to preview a WordPress post in a new tab⟶
Resize images with WordPress's image editor in PHP
Say you've got a list of external images to output that may be huge and mongous. In my case it was images of houses up for rent from a big-ass XML feed. It's unwise to serve these images up directly to users given that huge payloads are generally frowned upon. What you need, then, is a function that takes an image URL and caches it locally as a resized variant.
Keep on readin' on Resize images with WordPress's image editor in PHP⟶
Blinded by the light!
Does writing on GDocs have your eyeballs feeling a "closeup in Spongebob" sort of way? Try this!