Sometimes, you may need to display a string differently depending on whether a variable is 1 or more. i.e; “1 products in stock” isn’t technically correct. We could of course use an if() statement or even a switch() if there were multiple possibilities here, but for simple use cases, WordPress provides us with a handy […]
When building websites, I often use a combination of a custom theme, several custom plugins, and various third party plugins. I didn’t always do it this way but in doing so, I now think of a WordPress powered site relative to the entire installation and approach it as a system — WordPress gives us an […]
When working with WooCommerce in combination with other plugins that also have account-style areas on a site, it can make sense to choose one as the primary account area and link between them. Here’s a snippet demonstrating how you can add custom links to a WooCommerce account menu and control the URL so the link […]
If you are using WooCommerce and need to redirect users to a custom thank you page after they register to your WooCommerce site, you can use the woocommerce_registration_redirect filter to do exactly that:
A nice little side effect of the development of WordPress’ Gutenberg block editor is that we now have a range of WordPress-oriented NPM packages available to us. One such package that I’ve been using in recent development for the ACF Custom Database Tables plugin is the @wordpress/api-fetch package which, as its name implies, is all […]
Let’s take a look at the easiest way I know to set up custom REST API routes in a hurry.
WordPress’ REST API delivers all endpoints with the wp-json URL base. In this tutorial, we look at how to customise that to suit your needs.
Product news, tips, and other cool things we make.