8

So I looked all over to try and find some kind of rules, or at least some common-courtesy guidelines, concerning this issue and couldn't find anything.

Essentially I'm wondering what I should do when I find a WordPress plugin (free, listed within wordpress.org/plugins/, and includes the GNU GP License) that I think could seriously benefit by adding a given amount of functionality to it.

After altering the code and including the new functionality, do I:

1) Submit it to the current author of the plugin and hope that he/she adds it in?

2) Submit the "new" plugin to the WordPress plugin listings as one of my own?

3) Avoid either of these options. Just change the plugin and only use it for myself.

4) Do something else that isn't listed here? (Implies that suggestions be made in the comments section.)

From a licensing perspective, I can't see any prohibitions against making any of these choices. I don't know how moral it'd be to take the code, alter it, and then sell it as a premium plugin, but that doesn't seem to be prohibited by the GP License either.

What's the best practice for this situation? Obviously I don't want to offend the original author of the plugin or do something that'd make me look bad in the WordPress coding community. Still, in this case that I'm up against, I think the plugin would seriously benefit from this added functionality.

What say ye?

1 Answer 1

8

Ask the developer before you start writing code.

  • The feature you need might be implemented already, just not published.
  • Or the plugin API changes in the next version, and your code wouldn’t work anymore.
  • Maybe the author can just add a hook, so you can implement your code as separate plugin without changing the main plugin.

One of the core ideas of open source is collaboration. Always try to improve together. Avoid publishing something that is 90% a duplicate of an existing plugin. You make the choice for users just harder.

But if you had to write that improvement, and the developer of the original plugin just refuses to work with you, make your code public for the benefit of other users.

The license of plugins hosted on wordpress.org will always allow such alterations or addons.

3
  • Agree with Toscho. Personally I am always open to code submitted by users and will always add extra hooks and filters so that users can customize my code from another plugin. Commented Mar 5, 2014 at 23:22
  • Agree with Toscho and @helgatheviking. Speaking personally, I maintain a git repo and I LOVE it when people contribute. Commented Mar 5, 2014 at 23:23
  • Not disagreeing here with anybody, but the best option is to inspect the source code to see whether you can modify functionality by using the already implemented hooks (actions/filters) without changing any original code from the plugin. The second best option is to add a pull request on the git repository of the plugin, asking for a hook to be added (a pull request is a much better structured way to 'contact the author'). If neither of these work, then it's time to consider the other options.
    – adelval
    Commented Mar 13, 2014 at 22:11

Your Answer

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

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