11 posts
  • Exclusive Author
  • Germany
  • Has been a member for 0-1 years
nilmusiq says

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

1202 posts The Last Man Standing
  • Community Superstar
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Exclusive Author
  • Bought between 10 and 49 items
+2 more
ImanGM 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'             => ''
),...
153 posts ThemeTon
  • Football Contest Participant/Runner-up
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Has been a member for 3-4 years
  • Bought between 100 and 499 items
  • Exclusive Author
+2 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
  • Exclusive Author
  • Germany
  • Has been a member for 0-1 years
nilmusiq says

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

1202 posts The Last Man Standing
  • Community Superstar
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Exclusive Author
  • Bought between 10 and 49 items
+2 more
ImanGM says

You are welcome! :)

80 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 4-5 years
  • Exclusive Author
  • Repeatedly helped protect Envato Market against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
Thunderbuddies says

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

44 posts
  • Power Elite Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Author had a File in an Envato Bundle
  • Referred between 1000 and 1999 users
  • Grew a moustache for the Envato Movember competition
  • Exclusive Author
  • Bought between 100 and 499 items
+1 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
  • Exclusive Author
  • United Kingdom
  • Bought between 10 and 49 items
  • Has been a member for 1-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
  • Exclusive Author
  • Has been a member for 1-2 years
  • Most Wanted Bounty Winner
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
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
  • Exclusive Author
  • Has been a member for 2-3 years
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