Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I can't find a lot of information on google about creating a paid wordpress plugin. I'm already versed into plugin development, but what are my options to have a freemium model ?

I would like to restrict some parts of my plugin to paid users but obviously, as every wordpress plugin source code is free, is that really possible ? How do plugins like Gravityforms protect their plugin from being redistributed to the wild ?

share|improve this question
    
you can read thier Terms & Conditions gravityforms.com/terms-and-conditions –  Bainternet Jul 24 '12 at 11:54
add comment

1 Answer 1

You can't, not quite.

Since WordPress is GPL code, all code publicly distributed must also be licensed either as GPL, or GPL compatible.

The GPL states you cannot charge for code, but you can charge for distribution. So when you buy gravity forms, you're not paying for the plugin, you're playing for the downloading and acquisition of the plugin.

Once you have the plugin it is perfectly legal to burn it to a CD and mail it to 20,000 people free of charge. You won't get the support or updates ( unless you pay them again, or you have a support contract ), and it'd be a pretty nasty thing to do ( they have a business! ), but it's perfectly legal.

No matter what you do, someone will figure out how to redistribute it for free, so stop worrying about it, those people were never going to pay anyway and won't get the support for updates.

The only method that appears to work is to do the functionality on your own server and use API keys.

For the actual purchasing component:

Freemium

Put a payment mechanism on your site, and use it to generate API keys. Make the user put these keys into their backend, or couple their sites URL with their purchase, and use that to enable the restricted features.

Paid for Plugin

Set up something like Woocommerce or Jigoshop and use the virtual downloadable product type. E-Junkie is nice if you want something simpler.

A Word Of Note

For a license to be GPL compatible, it must be as restrictive or less. As soon as you forbid something the GPL allows, it's no longer compatible.

Those GPL components only apply once you're publicly distributing your code. If it's sitting on your desktop, you can do whatever you like with it. If you email it to someone or post it online however..

share|improve this answer
1  
Please stay back (in answers) from giving people law advices. As no one was sued so far and discussion just ended, we'll never be sure who is right on the license side of things. The only thing to mention is, that a non GPL compat license will keep you out of the wp.org repo. –  kaiser Jul 24 '12 at 13:02
    
thanks for your ideas ! –  RitonLaJoie Jul 24 '12 at 14:20
    
I say nothing that isnt said on the FSF FAQ –  Tom J Nowell Jul 24 '12 at 17:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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