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!! Quote Link to comment https://forums.phpfreaks.com/topic/238732-wordpress-themeplugin-updater/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.