Tag: code
-
Keeping My WordPress Blogroll in Sync With More Than One OPML Endpoint
I’m often the first to want to somehow modify the behavior of my own WordPress plugins. I also, however, prefer small plugins that do one thing well instead of bloated plugins that are pure hell to maintain. The solution? Hooks!
-
Sending Webmention Notifications to My Social Reader
I’ve only now started using my Microsub server’s Notifications channel. Here’s how I’m pushing a new notification to it everytime I receive a new webmention on my blog.
-
Micropub, Syndication Targets, and Crossposting to Mastodon
One of the many things Micropub offers, is a way to indicate which other platforms posts should be syndicated to. Here’s how I’ve made Micropub’s syndication targets work with the plugin I use to crosspost to Mastodon.
-
“Tootstorms” using Micropub and Share on Mastodon
I mostly use Indigenous, on Android, and Micropub to post “Tweetstorm-like” status threads to this blog. Like, I’ll post a note, navigate to it, post a reply, and so on. Using a fairly simple WordPress hook, I can crosspost these complete threads to Mastodon, too.
-
Automatically Destroy IndieAuth Tokens
If you’re running WordPress and use the wonderful IndieAuth plugin to issue tokens for all of your IndieWeb services, here’s how you can automatically invalidate—destroy, in fact—these tokens.
-
Adding an OPML Endpoint to My Aperture Instance
I was looking for a way to easily import feeds into Aperture, actually, and then I realized it’s not hard at all to add an export endpoint instead.
-
Allow WordPress to Redirect to … Itself
If your WordPress admin interface lives at a domain that’s different from your actual site’s, make sure to add the former to the “allowed redirect hosts.” If you don’ t, you’ll get redirected to the admin dashboard way more often than needed, e.g., after running some kind of action, rather than stay on the settings…
-
Adding Some Context to (Web)mentions
I decided to have a look at how WordPress generates its increasingly rare pingback “previews.” The result is a somewhat ugly PHP function that, given an HTML string and target URL, returns the link text, plus some of the text surrounding it.
-
Customize “Share on Mastodon” Statuses
Sometime last year, I wrote a (rather opinionated) plugin that automatically shares WordPress posts on Mastodon. While the Settings page lets you choose which posts will be POSSE’d, most “customizing” is made possible through filter hooks.
-
Truly Random Post Slugs
I’ve again changed the way certain Post Types’ slugs are being generated.