WP Plugin with Upgrade option

I'm working on a Wordpress Plugin and I'm looking for a way to include a free version and a premium version in one plugin.

I do not want to check "if(isPremium){} else{}" every view lines of codes, instead I'd like to download some additional files and replace one or two old once as soon as a premium license is activated. Can anyone give me a hint on how I could realize this functionality?

Best regards Macuser

Topic premium upgrade plugin-development Wordpress

Category Web


If you want your plugin being hosted on WordPress.org Plugin Repository, you cannot combine Free and Premium version, in one plugin.

You have to maintain two versions, Lite, hosted on WordPress.org, and Premium, hosted on your website.

Plugins hosted on WordPress.org cannot make any remote requests to your website ( aka "calling home" ), therefore, you will not be able to maintain your customers, their licences, payments, and downloads.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.