1

Most of the Wordpress Plugins are able to be updated from admin panel.

You go to Admin Panel > Plugins > Installed Plugins > and if you have an outdated(old plugin) that has a new version, you can click Update to download the new plugin.

How to add this to my plugin? Is this made with the:

Plugin URI: http://mysite.com/wp/plugin

If yes, than how to set up that folder? Should i name every new version in zip files in that folder? Or how to tell the version of plugin to wordpress?

1
  • 1
    that only works for plugins hosted in WordPress.org plugin repository. have a look at this question.
    – Milo
    Apr 6, 2014 at 15:48

1 Answer 1

2

If my guess is right that you think you add your site URL inside the plugin's head and it will magically update everyones plugin, then I have to tell you that wont work.

You have choices:

  1. Either you host your plugin on wordpress.org and updates work pretty much without you doing anything then pushing your plugin to svn with the right stable tag in the readme.
  2. You use a 3rd party code like https://github.com/YahnisElsts/plugin-update-checker to handle this, this requires you to include this code inside your plugin. If you set this up this will allow you to update your plugin from every server you like.
  3. Or you install or tell your customers / users to install Github Plugin Updater and host your plugin on Github. This is even easier then hosting your plugin or wordpress.org. You just push your Plgin to Github no need to worry what is the readme. All you need it the one line inside the plugin header GitHub Plugin URI: githubusername/githubreponame and it will work. (It updates itself from the master branch when the plugin version in the header changes I think)

If your plugin should be free as in no money and open source and does nothing immoral according to wp.org staff then I would pick 1. for best exposure.

2
  • I want to sell the plugin. If i choose 2, i have the code, but where to include it in plugin? How to tell it where is my github code? Thx
    – artur99
    Apr 7, 2014 at 17:31
  • The plugin has a link to its page quick start guide and more where everything is described. Please accept my answer and show some effort, thanks. Apr 7, 2014 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.