I'm seeking help and suggestion from all of you. I've built a plugin from the scratch and now instructed to update the previous version of that plugin. But the new version that I've created is totally different from the previous version. The name of the files, folders, project structure and database(I've created few tables not using anything from the old) even the text-domain is changed. I've searched through the internet to see how update works and found wordpress maintains a svn repository and maintain a tag folder for versions. But I'm not sure if everything is changed will that work. What should I be concerned about updating a previous version of a plugin. I'm looking for you kind advice or solution here what would be the best for me in this situation so that the users can see a new version comes in and a single click will update their previous version. Thank you.
I'm seeking help and suggestion from all of you. I've built a plugin from the scratch and now instructed to update the previous version of that plugin. But the new version that I've created is totally different from the previous version. The name of the files, folders, project structure and database(I've created few tables not using anything from the old) even the text-domain is changed. I've searched through the internet to see how update works and found wordpress maintains a svn repository and maintain a tag folder for versions. But I'm not sure if everything is changed will that work. What should I be concerned about updating a previous version of a plugin. I'm looking for you kind advice or solution here what would be the best for me in this situation so that the users can see a new version comes in and a single click will update their previous version. Thank you.
Share Improve this question asked Sep 29, 2019 at 5:18 DeveloperDeveloper 1354 bronze badges1 Answer
Reset to default 0If you put your plugin in the WP Repository, and
- change the version number in the readme.txt file
- put the new code in a new 'tags' folder with the version as the folder name
- also put the new code in the root of your repository (and I also put it in the 'trunk' folder
- and do the SVN Update thing
Then anyone with the plugin installed will get a notice about the update via the Admin, Update screen. And updating it will get the latest version installed on their WP system.
I'd put some sort of notice on the Settings screen about the new version, in addition to the needed information in the readme.txt file , which is used to display text on the various pages on your WP plugin page.