Prevent WordPress from automatically installing a new theme each year

The question:

Is there a setting for new disabling new yearly themes? Each year my WordPress installation automatically installs a new theme which I then delete. For example, this year the theme Twenty Twenty-Two was installed.

I already have a theme I like and I’m never going to want to use the newest theme of the year. I’m hoping there is some way to prevent WordPress from automatically installing these new themes in the future.

A few years ago somebody asked How to delete default themes? I already know how to delete the themes and they never got an answer about how to prevent them from being installed to begin with. There is also the question Should I delete the default themes? which is related, but doesn’t actually answer my question.

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

Looking through some resources, I found this track ticket which discusses the same topic. It seems the following will stop it, add it to your wp-config.php:

define('CORE_UPGRADE_SKIP_NEW_BUNDLED', true);


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment