Jan’s Blog

  • Home
  • WordPress
  • About
  • Notes
  • Blogrollin’

    May 19, 2024 • bddz.be/2RG

    by

    Jan

    I made my blogroll look a tiny bit nicer. I’m planning to still add actual RSS or Atom links, and remove any duplicate entries. (They’re there because I occasionally follow multiple versions of the same feed, for troubleshooting purposes, or multiple feeds from a single site.) Ages ago, I created a WordPress plugin called Sync […]

    Tagged: 100Posts, blogroll, indieweb, web feeds, wordpress
  • Removing a WordPress Plugin’s Hook Callback

    May 15, 2024

    by

    Jan

    I’ve used this trick a few times lately, when I wanted to partially disable certain WordPress plugins’ behavior. WordPress comes with all these hooks, right, and plugins do little more than attach callback functions to them. To insert extra bits of, well, anything, or modify variables before they’re used elsewhere. So, if you ever want […]

    Tagged: code
  • Dot Dot Dot

    Apr 21, 2024 • bddz.be/j0A

    by

    Jan

    One thing that’s been bothering me (a little), is the Excerpt blocks here on this blog. When no manual excerpt is set, the block calls wp_trim_words() to generate one dynamically, and append a horizontal ellipsis (“…”). It tacks this right onto the excerpt, even if the ends in a period or comma, which looks off. […]

    Tagged: 100Posts, code, wordpress
  • The Block Editor, Custom Meta, and ActivityPub

    Feb 6, 2024 • bddz.be/wRX

    by

    Jan

    I’ve been using WordPress’ “new” block editor for quite a while now, have moved my site over to a block theme, and so on, but I also almost always have a couple “old-style” meta boxes open. And because of how WordPress works, this combination of Gutenberg and meta boxes results in posts being “saved” twice, […]

    Tagged: activitypub, gutenberg, wordpress
  • An Interesting Tiny Bit of Code

    Jan 3, 2024 • bddz.be/jAB

    by

    Jan

    Just noticed this little code snippet in the WordPress’ ActivityPub plugin’s codebase.

  • IndieBlocks v0.10.0

    Nov 28, 2023 • bddz.be/GkN

    by

    Jan

    I should probably blog about this over at the IndieBlocks website, but whatever. So, what’s new in version 0.10.0? Well, webmentions for replies. That is, the plugin is now able to also send webmentions for comments that themselves are replies to a comment that originated as a webmention. (Makes sense? Good.) Doesn’t matter whether those […]

    Tagged: indieblocks, indieweb, wordpress
    Also on Mastodon
  • My WordPress Plugin List

    Nov 28, 2023 • bddz.be/yRx

    by

    Jan

    Quick overview of most of the plugins I’m running here. I run quite a few “mu-plugins,” too, to further tweak things, but let’s keep those for some other time.

    Tagged: plugins, wordpress
  • ActivityPub Performance Tweaks

    Nov 5, 2023 • bddz.be/LeJ

    by

    Jan

    Some things to consider when enabling ActivityPub on a self-hosted WordPress install. TL;DR: If your setup allows for it, use NGINX’s FastCGI cache; if not, consider the Surge plugin. Or a beefier server. Whenever one of your posts gets “boosted,” a whole lot of other servers may try and fetch (or GET) that post’s JSON […]

    Tagged: activitypub, caching, plugins, self-hosting, wordpress
    Also on Mastodon
  • Object Storage and WordPress

    Oct 26, 2023 • bddz.be/APO

    by

    Jan

    I used to actually host a Mastodon server. And it was then I first started to look into S3 object storage. For those not in the know, Mastodon—unlike, e.g., your average self-hosted RSS reader—stores both statuses and media of near the whole dang Fediverse … locally. (I mean, there are various reasons to want to […]

    Tagged: caddy, object storage, scaleway, wordpress
    Also on Mastodon
  • Share on Mastodon v0.17.1

    Sep 25, 2023 • bddz.be/8LQ

    by

    Jan

    This one contains a couple bug fixes. I also refactored some of the plugin’s inner logic. If you run into problems, hit me up.

    Tagged: plugins, posse, share on mastodon, wordpress
    Also on Mastodon
  • Implementing `is_gutenberg()`

    Implementing `is_gutenberg()`

    Sep 17, 2023 • bddz.be/v2G

    by

    Jan

    Share on Mastodon used to rely on (only) the transition_post_status hook to kick off a request to Mastodon’s API. Then Gutenberg came.

    Tagged: code, gutenberg, wordpress
    Also on Mastodon
  • Share on Mastodon v0.17.0

    Sep 3, 2023 • bddz.be/WPL

    by

    Jan

    I recently released a new version of Share on Mastodon. As of version 0.17.0, Gutenberg users will see a “proper” document settings sidebar panel instead of the previous “classic” meta box.

    Tagged: plugins, share on mastodon, wordpress
    Also on Mastodon
  • Displaying “Share on Mastodon” Links on WordPress’ Front End

    Aug 10, 2023 • bddz.be/G1z

    by

    Jan

    There are several ways to show a link to a post’s corresponding Mastodon status—an example of a so-called “syndication link”—on your site’s front end.

    Tagged: share on mastodon, wordpress
    Also on Mastodon
  • A Gutenberg `publish_post` Equivalent

    Jul 29, 2023 • bddz.be/9DO

    by

    Jan

    I’ve been porting bits and pieces (i.e., the main “meta box”) of Share on Mastodon to a “proper” Gutenberg “sidebar panel.” One of the things the “classic” meta box does, is display the resulting Mastodon URL after a post is published (or updated). In order to accomplish a similar thing in the block editor, I […]

    Tagged: gutenberg, javascript, share on mastodon, wordpress
    Also on Mastodon
  • Overengineered “Shared-on-Mastodon” Notes

    Jul 16, 2023 • bddz.be/4eN

    by

    Jan

    A “simple” add-on plugin that ensures “notes” are crossposted in full and correctly threaded, and converts HTML to Markdown before posting to Mastodon.

    Tagged: markdown, plugins, share on mastodon, wordpress
    Also on Mastodon
Next Page→

Browse by Content Type

  • Articles
  • Notes
  • Likes
  • Listens

Miscellaneous

  • About
  • Blogroll
  • /now
  • /uses
  • RSS Feed
  • Pixelfed
  • Mastodon
  • GitHub