Marinus Klasen

Marinus Klasen

  • Development
  • Consultancy
  • Developer Resources
  • Blog
  • Contact

August 16, 2022

Prevent WordPress update nag in custom WordPress plugins and themes using the Update URI header

Marinus Klasen

As the WordPress Plugin and Theme repositories are growing the names of custom plugins and themes are running out. What if you create a theme or plugin with a name that’s already used in the WordPress repository? In that case, WordPress will ask you to update it, and that could lead to disastrous events.

Since WordPress 5.8 we have the Update URI header for plugins. When this is set – either to a URL, slug or simply to false – the WordPress API will not return any information for updates.

The update for themes is ready, but not yet integrated to WordPress Core. It’s likely that this will be integrated before 2023. The current status is discussed in #14179.

Examples of Plugin Headers with Update URI:

<?php
/*
Plugin Name: Your Plugin Name
Plugin URI: https://example.test
Description: The description of your plugin
Version: 1.0
Author: the author
Author URI: https://example.test
Update URI: false
*/

More information about support for Update URI in WordPress 5.8 is found on the link below:

https://make.wordpress.org/core/2021/06/29/introducing-update-uri-plugin-header-in-wordpress-5-8/

About Marinus Klasen

Marinus has been working in software/web development for more than a decade. Since 2020 his attention shifted on sharing knowledge and developing products and tools for sharing knowledge.

Marinus Klasen on Twitter

Looking for a WordPress expert?
Hire top notch developers on Codeable!

Consult an expert

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get in touch

Contact me using the details below

Marinus Klasen

Wilhelmina van Pruisenweg 35, 2595 AN Den Haag

marinus@mklasen.com
twitter.com/marinusklasen
linkedin.com/in/marinusklasen

  • GitHub
  • LinkedIn
  • Twitter

Have you read?

  • Elementor Widget UsageMarch 27, 2025
  • Programmatically showing popups with ElementorMarch 25, 2025
  • The Elementor sanitize_settings errorSeptember 12, 2024
  • Announcing.. Wooping Shop Health!June 13, 2024
  • Swiper setup when using wp-scriptsMarch 14, 2024

Copyright © 2025 · Marinus Klasen | Webdesign by Team Rood