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.
Core Friction Pattern
Analysis of 2 peer accounts across online developer and community forums reveals that “How to stop updates from overwriting custom templates” repeatedly surfaces due to edge-case mismatches between standard defaults and real-world environments. Standard troubleshooting frequently falls short, compelling practitioners to develop custom workarounds.
+4 alternative community-tested workarounds cataloged below.
What people tried
Every workaround mentioned in the threads below. We haven’t tested any of them — and nobody here is claiming they worked.
Found another way around this?
Share your steps and trade-offs so fellow engineers don't have to reinvent the wheel. No account required.
How to stop updates from overwriting custom templates
- 1Keeping vendor and third-party templates staged separately and re-copying them after the updateDid this help?
- 2Clearing out stale ADML files in the language subfolder to avoid mismatched pair errorsDid this help?
- 3Using a code injection pluginDid this help?
- 4Creating a child themeDid this help?
- 5Dropping a standalone PHP file into a must-use plugins directoryDid this help?
Discussion Evidence & Citations
Primary SourcesUnedited verbatim quotes cited as empirical evidence supporting the symptoms and consensus workarounds above. Grouped by community venue, ranked by member upvotes, and referenced for authenticity.
“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.”[ref ↗]
“one thing that bites people: dumping the whole PolicyDefinitions folder into the central store wipes the Edge/Chrome/Office/third-party ADMX you added.”[ref ↗]