11 posts
  • Has been part of the Envato Community for over 1 year
  • Sells items exclusively on Envato Market
  • Located in Germany
nilmusiq
says

Hi can anybody say me the code of how to call premium plugins like rev slider in TGM plugin. Thankyou in advance.

1883 posts The Last Man Standing
  • Had an item that became a weekly top seller
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Helps us moderate the forums
+11 more
ImanGM
Moderator
says

Hello Nulmusiq,

You should upload the package somewhere secure then add it in the TGM plugins array like this:

array(
    'name'                     => 'Revolution Slider',
    'slug'                     => 'revslider',
    'source'                   => get_stylesheet_directory() . '/anydirectory/package.zip', 
    'required'                 => true/false,
    'version'                 => '1.2.3',
    'force_activation'         => true/false, 
    'force_deactivation'     => true/false, 
    'external_url'             => ''
),...
196 posts ThemeTon
  • Had an item that was trending
  • Had an item that became a weekly top seller
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a Most Wanted contest
+10 more
themeton
says

Simply,

1. Upload plugin files into your theme directory
2. Call it on functions.php file like
require_once( get_template_directory() . '/tgmplugin/plugin-install.php' );
3. Set plugin information on plugin-install.php file as http://d.pr/i/G8ph
11 posts
  • Has been part of the Envato Community for over 1 year
  • Sells items exclusively on Envato Market
  • Located in Germany
nilmusiq
says

Thankyou so much..@imangm and @themeton sir..

1883 posts The Last Man Standing
  • Had an item that became a weekly top seller
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Helps us moderate the forums
+11 more
ImanGM
Moderator
says

You are welcome! :)

94 posts
  • Became a Top 20 Author of the Month
  • Had an item that became a weekly top seller
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 5 years
+7 more
Thunderbuddies
says

Edit: oops wrong thread, sorry! Please ignore me :D

85 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $2M+ on Envato Market
  • Became a Top 20 Author of the Month
  • Had an item that became a weekly top seller
+9 more
themepunch
says

Hi,

in fact if you want to use it in your themeforest theme please use

‘force_deactivation’ => true

because the extended license you buy is for the use in that exact theme only.

Thanks a million & cheers, D

23 posts
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
  • Has been part of the Envato Community for over 2 years
themedesignguru
says

Hi everyone, if you don’t mind’ll ask few more questions on this:

We can place premium plugins inside a theme folder to be installed from there using TGM class. But theme folder size grows up to >20mb and that prevent a theme to be installed automatically from the admin panel. (Most hosting companies has max. 5mb per upload limit.)

I heard that TGM class can install plugins from a private BitBucket repo.

  • Is it allowed to put LayerSlider and VisualComposer plugins into private repo and use it as a source for TGM class?
  • Anyone tried this approach?
  • What can you recommend?
181 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
HellasDesign
says

For not creating a new thread…

Is it important to use TGM Plugin? For example, I want to include the plugins in a sub-folder of the .zip file that buyers download from ThemeForest and give them instructions how to install/use them. Can I do it or TGM Plugin is the only solution?

107 posts
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
mailmilisku
says

Hi,

in fact if you want to use it in your themeforest theme please use

‘force_deactivation’ => true

because the extended license you buy is for the use in that exact theme only.

Thanks a million & cheers, D

+1000

by
by
by
by
by
by