This solution should do the job for you.
http://tgmpluginactivation.com/
The solution is meant for theme developers to package to download, automatically install and activate multiple plugins that are either packaged with a theme, downloaded from the WordPress Plugin Repository or downloaded elsewhere on the internet (perhaps a private repository.
The code of the solution can be used to accomplish what you are trying to achieve. The code is also available on GitHub at:
https://github.com/TGMPA/TGM-Plugin-Activation
Best of luck.
Related Posts:
- Registering Class methods as hook callbacks
- A better way to override plugin’s JS files?
- Output before and after the loop
- How to make sense of the active_plugins option_value to enable and disable certain plugins from the database?
- Loading posts associated only to the logged in user on recent posts page
- Disabling Comment Notifications for Post Author
- wordpress get meta value by meta key
- Disable author pages for specific users
- Can I enable/disable/hide plugins on a per-site basis in multisite?
- Updating WordPress – the best approach (updating wp core, plugins and db)
- Code markup plugin like the .wordpress.com blogs offer?
- Get info (url) from already enqueued styles
- WordPress import does not fetch images, but just links them
- WooCommerce Always Include Shipping Information in Checkout [closed]
- Bad Request (Invalid Hostname) on working server, database problem
- How to get the current plugin name?
- Show the “ratingValue” and “ratingCount” values of KK Star Ratings Plugin
- bulk post_content update
- Plugin throws up 404 on front-end when when enqueuing style with filetime
- Errors while using ajax from external wordpress page
- Woocommerce cart is a non-object inside `admin_post` action [closed]
- List of plugin updates in admin bar
- What are WordPress installation percentages by version?
- Peer Review Plugin for Posts? [closed]
- Show a confirmation message on plugin deactivation
- How extend shortcode default values for a plugin?
- WooCommerce – Is is possible to replace downloadable file and allow existing customer to get it?
- Server side validation for Contact Form 7 [closed]
- How to debug register_setting callback function
- WordPress redirect all 404 pages to the Homepage
- How to edit Image layout in single product page in woocommerce on wordpress?
- Can I hook into get_avatar to supply a hash instead of an email?
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- WP Post Template – Templates in own folder
- Recreating a local repository from a currently existing wordpress.org repo..which I own
- Bootstrap Drop Down menu is not working
- How to update post’s content on post publish?
- Create a table with wordpress plugin boilerplate
- How to run subversion and staging environments when running WordPress
- Embed plugin into Custom Page Template
- Can I create a table on my DB without creating a plugin?
- How to get the first post and second post in a wordpress blog?
- Mass check a certain box in an option panel for 3000+ WooCommerce products?
- using do_shortcode
- Getting taxonomy images to display on single-post with their terms
- Where to populate custom terms in custom taxonomy in plugin?
- get meta value from database by post id
- Contact Form 7 – Show image on successful send? [closed]
- Disable plugin only for one post
- add_submenu_page returns null
- How can I add “last updated” in plugin descripton?
- get_option / wp_localize_script Not Working in OOP Plug In
- Creating a form and displaying entry data as a table
- Enable Shortcode for Custom Wordress Widgets
- Remember the Meta Value With Radio Buttons
- Plugin code will not work properly inside a class [closed]
- how to check if a shortcode is used more than one time in the same post
- Why may one avoid Jetpack plugin? [closed]
- Stopping WordPress’ WYSIWYG Editor from Converting “didn’t” into “didn””””’t”?
- acceptance_as_validation: on is not working Contact form 7 [closed]
- “User need to be logged in in order to make a booking” issue
- Custom Plugin scripts from admin working in frontend
- wc_get_template_part doesnt display the content [duplicate]
- How to properly use wp_mail() in my own plugin?
- Thumbnail image doesn’t show up in Shortcode output
- Cannot pass value variable to WP AJAX functions
- How to properly enqueue jQuery knob on WordPress without conflict?
- Add custom WordPress admin page with pretty url via code
- add_action(‘the_content’, ‘my_plugin_content’) is null
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- WordPress logout appends cache/all/index.php to the site_url()
- how to add navigation icons in specific template?
- Description is not showing in plugin page
- Using any plugin results in http 500 error (and only plugins)
- Not able to upload Plugins/ Theme from Admin backend
- Update javascript URL in header – Domain Mapping Plugin [closed]
- I am trying to rewrite urls in WordPress, but its not working
- Delete postmeta when uninstall/delete plugin
- Speed issues because of CSS & JavaScript
- how can i get records from wp_postmeta table using particular meta_key in database?
- Form is not getting submitted [closed]
- How to get the list of languages provided by a plugin
- Write mysql credentials in plugin
- Getting warning while deleting custom fields
- Posted posts scheduling to unhide for new members
- Editor have not permissions for a plugin
- Plugin that uses AngularJS tutorial
- custom url with custom post
- How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?
- SWF in wordpress post
- MySql Query for WordPress
- How do i use the use the wooCommerce functions in a wordpress plugin?
- show Visual form builder in the front end
- WordPress repository forbids me call wp-load.php in non-WordPress file
- Manually updating a plugin , is it overriding the previous settings of the plugin?
- Requires PHP version 5.3.0
- Visual Composer Tabs don’t work on mobile
- warning wp session
- Google Books Lookup & Auto FIll
- WP_Query does not return the result even if the data is present in the database