Said It Here

How to stop updates from overwriting custom templates

Replacing central configuration folders during an update wipes out your custom additions, such as third-party ADMX files or WordPress functions.php edits. This forces you to manually re-apply your changes every time the software updates.

What people tried

Every workaround mentioned in the threads below. We haven’t tested any of them — and nobody here is claiming they worked.

  1. 1
    Keeping vendor and third-party templates staged separately and re-copying them after the update
  2. 2
    Clearing out stale ADML files in the language subfolder to avoid mismatched pair errors
  3. 3
    Using a code injection plugin
  4. 4
    Creating a child theme
  5. 5
    Dropping a standalone PHP file into a must-use plugins directory

In their words

Unedited, grouped by where they were said, most upvoted first within each place, each linked to the thread it came from.

r/Wordpress1 person · October 2026

“But when Wordpress core updates, does functions.php also get overwritten sometimes? How often is this specific file updated? I wouldn't want to keep editing the file with my edits every time WP has an update.”source ↗

idiotprogrammer2017 · r/Wordpress · 2 upvotes
r/sysadmin1 person · October 2026

“one thing that bites people: dumping the whole PolicyDefinitions folder into the central store wipes the Edge/Chrome/Office/third-party ADMX you added.”source ↗

Open-Adhesiveness-86 · r/sysadmin · 1 upvotes

Where this came up

People with this problem also raised