fbpx

Phil Kurth

Display a singular or pluralised string in WordPress

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 […]

Phil Kurth Phil Kurth

Using Git to version control the entire wp-content directory

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 […]

Phil Kurth Phil Kurth

Want it delivered fresh? You know what to do…

We never share your data.
Read our Privacy Policy

Adding custom WooCommerce account menu links to any desired URL

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 […]

Phil Kurth Phil Kurth

Redirect a user after they register via WooCommerce

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:

Using the Gravity Forms Advanced Post Creation add-on with ACF Custom Database Tables

Learn how to use the Gravity Forms Advanced Post Creation Add-on to save data to custom database tables.

Phil Kurth Phil Kurth

Cookie-based authentication when using the WordPress API Fetch NPM package

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 […]

Phil Kurth Phil Kurth

Quick & simple custom REST API routes for WordPress

Let’s take a look at the easiest way I know to set up custom REST API routes in a hurry.

Phil Kurth Phil Kurth

Three ways to exclude fields in ACF front end forms

ACF-powered front end forms are quite powerful as you can use a single ACF field group in both the WordPress admin & a front end form. Here are three ways to control which fields render on the front end.

Phil Kurth Phil Kurth

ACF Custom Database Tables 1.1 Released: Repeater Field Support, Column Data Type Filters, Plugin Settings Panel, & more

After many months of hard work version 1.1.0 of our ACF Custom Database Tables plugin is finally done. This release introduces support for the ACF Repeater Field type along with a number of other improvements and filters which enable developers to implement finer control over their custom database table structures. Some important things to note […]

Phil Kurth Phil Kurth

An automatic versioning strategy for enqueued WordPress assets

WordPress makes enqueuing assets super simple and generally does its very best to keep those assets up to date where possible but we can take this a step further and use PHP’s filemtime() function to ensure our JavaScript and CSS files are given a new version whenever we make changes to them. An example of […]

Phil Kurth Phil Kurth
1 2 3

Good dev stuff, delivered.

Product news, tips, and other cool things we make.

We never share your data. Read our Privacy Policy

© 2022 Hookturn Digital. All rights reserved.