I have some eight so-called must-use plugins in my WordPress install’s “mu-plugins” folder, and use them as an alternative to “functions.php” (which is where most online guides still tell people to add custom bits of PHP). Continue reading Must-Use Plugins →
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 or tools page the request originated from. Continue reading Allow WordPress to Redirect to … Itself →
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. Continue reading Adding Some Context to (Web)mentions →
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. Continue reading Customize “Share on Mastodon” Statuses →