{"id":1211,"date":"2022-08-16T07:55:52","date_gmt":"2022-08-16T07:55:52","guid":{"rendered":"https:\/\/mklasen.com\/?p=1211"},"modified":"2022-08-16T07:58:18","modified_gmt":"2022-08-16T07:58:18","slug":"prevent-wordpress-update-nag-in-custom-wordpress-plugins-and-themes-using-the-update-uri-header","status":"publish","type":"post","link":"https:\/\/mklasen.com\/prevent-wordpress-update-nag-in-custom-wordpress-plugins-and-themes-using-the-update-uri-header\/","title":{"rendered":"Prevent WordPress update nag in custom WordPress plugins and themes using the Update URI header"},"content":{"rendered":"\n
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.<\/p>\n\n\n\n
Since WordPress 5.8 we have the 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<\/a>.<\/p>\n\n\n\n Examples of Plugin Headers with Update URI<\/code> 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.<\/p>\n\n\n\n
Update URI<\/code>:<\/p>\n\n\n\n
<\/pre>\n\n\n\n