Jump to content

wordpress theme/plugin updater


Imaulle

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.