Imaulle Posted June 7, 2011 Share Posted June 7, 2011 Hello, I'm working on some WordPress themes/plugins... I have a class that will inject some DB stuff to run an update for both the plugins and themes. This will download a new zip and do basically what the normal internal wordpress theme/updater stuff does... But I could not find a way to do any SQL updates etc with the new zips being downloaded so I've added to the core theme/plugin files: if (file_exists('update_db.php'){ include('update_db.php'); unlink('update_db.php'); } Anyone see any issues doing it this way? Or if there is a better/known way to do it properly? thanks!! Link to comment https://forums.phpfreaks.com/topic/238732-wordpress-themeplugin-updater/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.