WordPress and web development
-
Data loading in React based WordPress admin pages
I saw a twitter discussion recently that got me thinking. When building plugins with custom admin pages, one of the more modern approaches is to build them in React, and re-use the Gutenberg component library for building out the UI so we get a nice native-feeling experience. I’m all for this and doing it in…
-
WCEU Torino – a first timers experience
So it seems to be the thing to do a write up after a WordCamp experience. I hope I’m not adding noise to the already great articles I’ve read out there, I thought it would be a good idea to do a small write up from a first timers perspective. While I’ve been “in” the…
-
SlotFills and fillProps in the block editor
When building blocks or working with the Gutenberg APIs you might have come across SlotFills. They’re really useful and allow you to insert components in different locations from seemingly disconnected parts of your application. A quick explanation The way it works is, a <Slot /> component will be added somewhere in an application – and…
-
Installing WordPress Coding Standards
… as a project dependency. A problem I came across recently when working on a project with a colleague was setting up WordPress Coding Standards (WPCS) with PHP Code Sniffer (PHPCS). I already had it setup on my development machine, with PHPCS installed globally as well as the WP Coding Standards. But lets say we…
-
Creating sidebars for the post and site editors
There are multiple articles on how to create a sidebar in the block editor but something you might not have seen is how to do that for the site editor (aka Full Site Editing, aka FSE). It’s a nearly identical setup to create a sidebar for the site editor but it is not yet documented,…
-
Creating Cron jobs in WordPress plugins
This topic has been covered plenty already but I always find myself googling this or looking at an old codebase when I need to create cron jobs in WordPress. So this is more of a note to self (as I imagine many future posts will be) of how to do this as a self contained…
-
How to add a Mastodon verified link without a plugin
You can add Mastodon verified links to your WordPress site without using a plugin by adding a code snippet (below). If you’re not sure what a verified link is, they look like this, with the check: First make sure to use the core Mastodon social link block and add a link to your Mastodon profile:…
-
Hello world 2023 edition
If you’re seeing this message then its likely you’ve found this site while it’s still in development. This is currently a playground for testing out some new WordPress features (such as FSE) and occasionally blogging about WordPress and web development in general. So 👋 happy new year and bye for now.