This question is an exact duplicate of:

How to include all plugin files with the wordpress theme so that when i distribute the theme , the theme must ask the user to install recommended plugins. how do we achieve that??! for example. i am lets assume i am using WP Bakery Page builder ive paid for it and have got the license,, i build a theme using wp bakery page builder when the user downloads it and installs the theme, theme must ask him to install recommended plugin(i.e WP Bakery Page builder) and when he installs the plugin,, plugin shouldnt ask him to get license or get premium key?

marked as duplicate by Jacob Peattie, Community Jun 30 '18 at 4:14

This question was marked as an exact duplicate of an existing question.


One way is to use TGM Plugin Activation

It’s a PHP library that allows you to define which plugins are required and which are recommended. You can use plugins from WP repository, from given link or bundle plugin with your theme...

Not the answer you're looking for? Browse other questions tagged or ask your own question.