Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.