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.
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.
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: