By default, WordPress saves every change you make to a post or page as a revision.

While this is great for version control, it can quickly bloat your database—especially on long-form content or frequently edited pages.

In fact too many revisions can slow down your admin dashboard, cause memory issues with certain page builders (like Avada or Elementor) as well as lead to database bloat over time.

This article is a quick reference for how I automatically limited the number of stored WordPress revisions.

Read more

Running a WooCommerce store often means tailoring the shopping experience to different types of users.

One common customization is hiding product prices from visitors who aren’t logged in.

Whether you’re running a wholesale store, a members-only shop, or simply want to encourage account creation, this tweak can be incredibly useful.

In this post, we’ll show you how to hide product pricing for logged-out users using a simple code snippetno plugins required.

 

Read more

Gravity Forms is a powerhouse plugin for building advanced forms in WordPress. One of its standout features is file uploadsincluding images.

But what happens when users upload massive, high-resolution images that bog down your server or slow down your site?

Good news: you can automatically resize uploaded images using a simple PHP snippet. In this post, we’ll walk you through how to implement it and tailor it to your specific form setup.

 

Read more

Below is a personal list of web spiders and web crawlers that I block from crawling various sites.

This helps mitigate issues related to server load, security, and content scraping.

Carefully consider the impact on your website’s visibility and search engine ranking before applying any of my crawler blocks within this article.

 

Read more

If you’ve ever uploaded a PDF to your WordPress site and noticed that WordPress automatically generates a preview image, you’re not alone. Since WordPress 4.7, this feature has been enabled by default.

While it’s helpful for some, others may find it unnecessary or even problematic—especially if you’re managing a large media library or want to conserve server resources.

In this post, we’ll walk you through why you might want to disable PDF previews and how to disable the previews safely and effectively.

 

Read more

The WordPress admin panel is packed with useful features, but sometimes less is more—especially when you’re customizing the backend for clients or streamlining the interface for your team.

One often-overlooked element is the Help tab that appears in the top-right corner of many admin screens.

If you’re looking to clean up the interface or prevent users from accessing help content, here’s how to hide the Help tab with just a few lines of code.

 

Read more

Hotlinking is the act of linking to a file that is hosted on another site, instead of downloading the file and hosting it on your own server. With proper source citation of course.

Images are most frequently hotlinked filetype, but zip, PDF and other digital assets can also be hotlinked.

Since hotlinking requires the website server hosting the file to use its own bandwidth to load it on the offending site, it’s considered bad etiquette. Others go further and call it theft. That’s because it eats up the bandwidth of the site you took it from without giving them the benefit of increased traffic or credit.

In this article I show you how to block others from hotlinking various filetypes from your web server. To spare your server from other undesired traffic, read my article on a list of web crawlers to block.

 

Read more

The Facebookexternalhit/1.1 is a user agent used by Facebook to crawl and index web pages for its various services, such as Facebook, Instagram, and WhatsApp.

This crawler is responsible for retrieving content, images, and other metadata to improve Facebook’s search functionality and provide users with relevant results.

However, the facebookexternalhit crawling activity can sometimes cause issues for website owners, such as increased server load, bandwidth consumption, and potential security risks.

This article covers why you might want to block facebookexternalhit as well as how to block the facebookexternalhit crawler.

 

Read more

In this article I will show you how to quickly and easily add a script to your child theme functions.php file which will block access to the WP Admin bar and backend for anyone with the Subscriber role.

 

Read more

Recently had a client with a WordPress website in need of injecting a JavaScript tracking code into the Header. This would allow the injected JavaScript tracking code to appear within the header <head> of every page on their website. Newer WordPress themes usually provide an option to inject code into the either the header, body or footer areas but the client had a custom WordPress theme with no such feature or ability.

In this article I will show you how to quickly and easily add a script, JavaScript or any other custom code into the Header area of your WordPress website with or without a WordPress plugin.

 

Read more