-
Gutenberg test, a simple FAQ block
This is my first attempt at a Gutenberg block. I’m building this looking at / copying nylen’s Gutenberg examples plugin. Mine is named “Gutenbergerli” because this will be wonderful for a few hours then it’ll go stale, just like Luxemburgerli which are some of the best things ever for a time, at least.
-
scraping http POST requests with golang
One of the #enumerateallthethings projects in Go. PostScrape lets you scrape targeted html nodes in enumerateable http POST requests. It uses goquery for the targeting. Currently it’s command line only. Works but not finished at all, needs tests and other things. (Part of a larger project where I just needed the data.)
-
A Slack bot that gets the last three posts from a WordPress site
This Glitch project grabs the latest three posts for WordPress sites which are using either the WP REST API or the WP.com version via Jetpack. It uses MongoDB for persistence. It’s not super exciting or well written but a fairly effective way to mindlessly try sites on Slack and see if they have the WP…
-
Calculate object.clipTo rectangle path when cropping in Fabric.js
Playing with Fabric.js was fun although one bit I had trouble with was calculating the object.clipTo rectangle path.
-
Glitch image cropper with Fabric.js
“How hard can it be to make an image cropper?” 🙃 It took me longer than I think it should have but was a great deal of fun. Here is the working version (“working” being relative, mind you) and you can remix it in Glitch here. If you haven’t used Glitch, try it out. It’s like Codepen for…
-
How Gravatar works
This is an overview of how sites get data from Gravatar and what’s available from the Gravatar ‘API’ (quotes theirs).
-
Ajax in WordPress not working for logged in users without wp_ajax_nopriv action
I had a rather interesting problem the other day. My ajax request was not working if I didn’t use the wp_ajax_nopriv_ action on a page where the user was clearly logged in. Why? Why was this happening?
-
Getting the placeid, latitude and longitude for the Google Maps Javascript API
Need the place id or anything from the Places Search results for whatever you’re doing with the Google Maps API?
-
How does WordPress know if a pending post hasn’t been published yet?
If WordPress has a newly created pending post, when you publish it the timestamp on the post is set at the time of publishing. If you publish a post, then set the post status to pending, the timestamp does not update when you re-publish it. How does it know? And why does it matter?
-
So what’s the difference between WordPress filters and hooks?
Understanding what filters and actions do took me forever, ok, maybe not but longer than I’d care to admit at any rate. It wasn’t the fault of the resources I found, it was just that I couldn’t get my head around it. But one day, PING! I got it. Here is how I understand them.…