1

This question is probably suitable for all software updating. How does software updating normally work? I have developed a WordPress plugin and now I want to code the updating module. The plugin checks for new updates and if an update is available, the user is notified.

The easiest part is done. A hook to check for new updates is up and running and if a new version available, a notification is shown to the users.

Now comes the hardest part. The new version of the plugin is hosted in my server. Should I need to replace all the files with the new files or only the updated part. I will have a new version as a ZIP file. How can I implement this in WordPress?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Vishnu Sureshkumar
  • 2,246
  • 6
  • 35
  • 52

2 Answers2

1

You should be uploading your plugin to the WordPress repository.

WordPress then tells your users about any updates and allows auto updating. Hosting it yourself is not a good way to do things.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
fisicx
  • 61
  • 9
0

The answer for the question is in Automatic Updates For Private And Commercial Plugins.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Vishnu Sureshkumar
  • 2,246
  • 6
  • 35
  • 52
  • While maybe an answer, SO aims to provide answers, not links (which potentially might go offline) to answers. – kontur Jul 21 '17 at 08:31
  • The link still works, but can you [summarise in your answer](https://stackoverflow.com/posts/20933845/edit) before the link breaks? (But ***without*** "Edit:", "Update:", or similar - the question/answer should appear as if it was written today.) – Peter Mortensen Aug 15 '21 at 23:04