Hi can anybody say me the code of how to call premium plugins like rev slider in TGM plugin. Thankyou in advance.
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' => '' ),...
Thankyou so much..@imangm and @themeton sir..
You are welcome!
Edit: oops wrong thread, sorry! Please ignore me
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
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?
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?