Hacking WordPress Websites

For our PHP-proficient users who are comfortably in tune with their inner geek, we've published this collection of our favorite WordPress customizations.

Regular expression reference

Regular expressions have always read like Greek to me (Chris). Fortunately, we don’t use them too much in our day-to-day jobs, but when the need arises, it seems like we always spend quite awhile scouring Stack Overflow for a regular expression that really works. (As opposed to the first dozen or so results that either…

Read More...

Delete all product categories, product tags and products from WooCommerce

Use a brief series of MySQL queries to rapidly delete hundreds, thousands or even tens of thousands of WooCommerce products.

Read More...

Who is hosting this website? A nifty way to answer.

Often, we work with clients who bought a domain name or website hosting years ago. What’s more, since opening up shop, they might’ve transitioned between a lot of providers. So let’s say we need to log in to their current account to export a database, connect via FTP or repoint a domain; to name three…

Read More...

Testing your newly migrated website before updating DNS; how to modify your hosts file

So you’re migrating your website to a new and better server; congratulations! In experienced hands, most websites are straightforward to migrate, but it’s always a good idea to test things out as much as possible before repointing your domain. If you repoint and your website isn’t ready, then you not only risk a poor user…

Read More...

How to force SSL on a WordPress website

Use of SSL instills confidence in your users and is a minor ranking signal to Google. Here’s how to force your WordPress site to use it.

Read More...

Making WordPress faster: PHP 5.x vs PHP 7.x

The vast majority of WordPress sites online today are still running on PHP 5.x; PHP 7.x is faster and more secure. But how much faster? We’ll show you in this post.

Read More...

Redirect everything except /wp-admin and wp-login.php

Often, a client asks us to take down a site — either temporarily or permanently — but they still need access to their WordPress administrative panel. As usual, there are lots of different ways to accomplish this; many SEO plugins allow you to create redirects, but require you to do so one post at a…

Read More...

Creating a new WordPress administrative user

Often, we’re asked to either review a client’s WordPress configuration, or to make changes which require an administrative login. Sharing passwords is never a good idea. Particularly because so many people reuse passwords or minor variations of them across multiple websites, you don’t want to risk giving someone else the keys to your kingdom. We…

Read More...

Creating a WordPress admin user in the database

If you need access to a WordPress site and have access to the database, this quick bit of SQL is the simplest way to create an administrator-privileged user.

Read More...

Sorting a UABB photo gallery by filename

By default, UABB’s gallery modules sort images by date. When sort order matters, here’s a quick snippet of code that will automatically force them to sort by file name instead.

Read More...