Skip to content

Instantly share code, notes, and snippets.

View davideleuterius's full-sized avatar

David Eleuterius davideleuterius

View GitHub Profile
@davideleuterius
davideleuterius / wordpress-import-update.php
Created December 9, 2019 16:07 — forked from ssuess/wordpress-import-update.php
Force the WordPress importer to update existing posts instead of skipping them
<?php
/**
* When using the WordPress Importer, update existing
* posts instead of skipping them. Updates content according
* to the import file even if the existing post was updated
* more recently.
*
* To use, drop this file into your /mu-plugins/ folder or
* copy this code into your functions.php file.