WordPress Tutorials

Guides, tutorials, code snippets & learnings for WordPress developers. This is all the good stuff that any WordPress dev can learn and apply to their own work.

What is the difference between URI, URL, and URN

Let’s take a look at the difference between URI, URL, and URN. These always get me so I thought I’d best write about it and see what sticks!

Phil Kurth Phil Kurth

Introduction to the WordPress wp-config.php

The wp-config.php file is a critical file in your WordPress installation. It contains important information about your WordPress site, such as your database connection details, WordPress table prefix, and other essential configuration options. Let’s take a look at some of the things you can do with WordPress’ wp-config.php.

Phil Kurth Phil Kurth

Want it delivered fresh? You know what to do…

We never share your data.
Read our Privacy Policy

A simple WordPress plugin for loading media library images from a live site

A quick and easy plugin for rewriting your image URLs in staging or development environments.

Phil Kurth Phil Kurth

How to add custom admin columns for your WordPress custom post type

Adding your own custom admin columns can lead to some very interesting and powerful experiences for you website clients. A fantastic option for doing so can be the very popular Admin Columns Pro plugin but you may find yourself in a situation where you need something specific and need to roll your own solution. Doing […]

Using an ACF field value as a fallback for WordPress post excerpt

Learn how to use an ACF field as a fallback — or as the source — of a WordPress post excerpt.

Phil Kurth Phil Kurth

How to remove trailing zeros from round WooCommerce prices

Often, we’ll have product prices that are a round number and don’t need decimal places. In this article, we take a look at how to configure WooCommerce to remove decimals from round numbers when formatting the price.

Phil Kurth Phil Kurth

How to stop WordPress from logging deprecation warning notices

WordPress debug log is very useful to developers as it allows to see many issues our code (or third-party code) may be causing. This is often the first point of call when there is a problem on a website — checking the log. When working with a site that has a lot of plugins, there […]

Phil Kurth 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 singular or plural. i.e; “1 product in stock” compared to “2 products in stock”. 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 […]

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

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
1 2

Good dev stuff, delivered.

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

We never share your data. Read our Privacy Policy

© 2016 – 2024 Hookturn Digital. All rights reserved.