TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 429 forks source link

Disable install link for codecanyon plugins #274

Open TheZoker opened 9 years ago

TheZoker commented 9 years ago

Hi there,

For my plugin the visual composer (http://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431) is needed. But I cant provide an source url for this plugin, because the user has to buy this.

So can I anyhow deactivate the "install" (not the activation") link for this plugin or change it to "Buy" with a link to the above page?

Thank you :)

inetbiz commented 6 years ago

What's the status?

inetbiz commented 6 years ago

I could modify the zip after I purchase extended license to point to my affiliate link for purchase.

cliffordp commented 6 years ago

+1 Another example: building an add-on for Gravity Forms

cliffordp commented 6 years ago

Related bug: \TGM_Plugin_Activation::get_plugin_source_type() returns bundled if 'source' => 'external' Just an odd side-effect/bug that should be fixed along the way.

I imagined passing 'source' => 'external' (as opposed to a URL) would disable the Install link, but it did not and therefore I found this ticket.