Remove WordPress Theme Update Notifications

I’ve built and maintain many WordPress websites. I really love WordPress’ ease of update, however having to maintain these sites I greatly dislike the constant theme updates. I understand the need to update themes you use, but why do I need to download a new Twenty-x theme every 12 months when I’m using a custom theme that’s not dependant on any of them?

In an effort to lighten my work load I went in search for a quick fix but came up empty handed. A quick poke through the WP core showed a handy filter I could change to quickly get my desired result.

Unfortunately because this is admin core functionality it needed to be in a plugin. If you have a base theme plugin add this to that, otherwise use as is.

 * @package Remove_Theme_Updates
 * @version 1.0
Plugin Name: Remove Theme Updates
Plugin URI:
Description: Remove annoying theme updates from WordPress. Don't use if you need your themes automatically updated.
Author: Morgan Leek
Version: 1.0
Author URI:

add_filter('site_transient_update_themes', 'remove_update_themes', 100, 1);

function remove_update_themes($value) {
    return null;


Advanced Custom Fields and Woocommerce Location Rules

Just a short post about a Git I’ve started up. I recently needed to specify a couple of ACF fields to only appear on a ‘Simple Product’ type in ever popular Woocommerce. To my surprise there wasn’t an existing plugin that extended ACF location rules to integrate with Woo attributes. So I went about writing my very own. Recently deciding I wanted to give more back to the community that gives so much to me I stuck it up of Github.

I will continue to add attributes over the next few weeks. At the time of writing this post I currently have support for the following attributes.

  • Product Types (Simple, Grouped, External, Variable)
  • Product Variations (Downloadable, Virtual, Sold Individually)
  • Product Taxation (Product Taxable, Shipping Taxable)

Please download and comment on the Git should you find any issues. Also please make suggestions for additional features in the issues area.


Theming WordPress Login Page


This is a pretty basic one, often covered on the internet. However today I wanted to record a video more about working out how to solve problems such as these when a Google search doesn’t help. The video discusses the process of locating hooks to make changes to the WordPress core functionality, and making them persistent even after updates.

For all those looking for the code or just want to know a quick way to theme the WP-Login page the code is below.

You’ll need to add the following source to your themes functions.php file.

// filter for altering the login pages WordPress image link url
add_filter('login_headerurl', 'html5_login_headerurl', 10, 1);

function html5_login_headerurl($url) {
    return __('');

// filter to enqueue addition css stylesheet
// to overwrite WordPress default image
add_action('login_enqueue_scripts', 'html5_login_enqueue_scripts');

function html5_login_enqueue_scripts() {
	// you'll need to change the location below if your style
	// sheet is located elsewhere
    	get_template_directory_uri() . '/css/admin-style.css', 
    wp_enqueue_style( 'html5_admin_css' );

Finally you’ll need to create and new logo and place it in your themes image folder. In this case my image folder is call ‘img’ and my logo is called ‘new-brand.png’. You’ll also need to create an admin style sheet to place the css in. This style sheet is the one references in the functions file above.

.login h1 a {
	background-image: url('../img/new-brand.png');


Latest Posts by Category Widget

Description | Features | Download | Screenshots


This WordPress widget allows the user to print a list of recent posts by category.


The user can select one or more categories to display.

Options include custom title, custom read more link, custom read all link, excerpt length, hide excerpt and ability to select a single or multiple categories.

This widget is object based so you can add it multiple times to several widget areas.