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 athttps://github.com/TGMPA/TGM-Plugin-Activation.
Best of luck.
Related Posts:
- ‘Global’ settings page for multisite plugin
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- How do I show data from gravity forms in my template? [closed]
- How do I cleanly override a plugin’s CSS with a child theme?
- How can I add a featured image to a page?
- How to customize a plugin whilst maintaining ability to upgrade
- PHP code on Visual Composer Plugin
- How are plugins in the WordPress plugin directory ranked?
- How can I log a user out of WordPress before the page loads?
- What does a security risk in a plugin look like?
- How to generate/update a XML sitemap without plugins?
- Insert plugin content before body end
- Markdown in WordPress 3.2?
- Integrating Google Maps with custom marker and hover?
- How To Ignore a Filter On Applying Filter the Content In a Function
- Delivering a file instead of wordpress page
- Restricting users to a specific front end page [closed]
- Plugin to restrict login and unpublish content from an author
- How to get list of Scripts in Order of Dependencies
- Is it possible to make shortcodes NOT case sensitive?
- Overriding a function in wordpress
- Get list of sites that uses specific plugin or theme
- TechCrunch WP Asynchronous Tasks plugin still works on v4.7.5? [closed]
- What is the purpose of $merged_filters?
- Trigger Autosave or disable unsaved changes dialog
- WP-Cufon adding extra space in my paragraphs in Firefox and Chrome
- What is Stable Tag in WordPress plugin readme file
- Next and/or previous post content
- How To Clean The Malware Infected & Hacked WordPress Websites? [duplicate]
- How to remove style and js from theme and add your own style and js where shortcode is used?
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Re-naming a theme/child theme whilst maintaining updates
- Get posts from WP_Query and format them on admin_head
- Pull out Advanced Custom Fields in Related post plugin
- Display post lists in 2nd paragraph
- How to make a proper custom post type link
- Can’t Update or Delete Plugins From WordPress
- Set and access global variable
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- Is there a way to test that readme looks in other language before submitting translation?
- Insert content of a post into another
- ob_start() combined with wp_query
- Theme/Plugin installation through url on button click
- How to make custom client Login page for a specific page
- date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
- Reference product SKU on WooCommerce confirmation page [closed]
- Jquery plugin not working on single pages
- Why am I getting a “Call to undefined function curl_init()” when I try to use the Sociable plugin?
- Is there a social members only login plugin for WordPress? [closed]
- Advanced Custom Fields – Get value in other plugin file [closed]
- How to get menu location in wp_update_nav_menu hook
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- WordPress Console Application (ability to excecute a custom function via crontab only)
- Private Page View Counter
- Updating WordPress across multiple versions
- Why does my jQuery plugin show up as text in WordPress?
- I am Unable to access WP admin
- Embed PDF into wordpress
- Extending a theme: build new features as plugin or core modules?
- Replace woocommerce | (pipe) separator in product variation to , or another character?
- Why are my constants not available outside my class?
- How to modify the Loop from a plugin (instead of a theme)
- WordPress FLIR (Facelift Image Replacement) plugin clipping off end of text
- WP Subtitle Plugin Problem
- Switching Code plugins
- help intercepting save_post through plugin
- How to save Setting pages data to the database?
- How to Remove all Traces of a WordPress Plugin?
- How to show posts as custom field in specific post type?
- Create Woocommerce account password post-checkout on thank you page
- Prevent WordPress from sending set-cookie http header
- dokan edit functionality
- Automatic chage password of pages after some time
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- How to add post title to custom php?
- How to Disable Auto Executing Script in A Particular Page Only
- wp plugin adds “pagespeed.css” after each css file
- Replace Yoast og:image in single custom post type
- How to change the deafult template in WordPress plugin
- WordPress Media Uploader : How to add custom button on featured image tab
- Change pricing in Woocommerce based on Category and Product [closed]
- Place content inside the Post Loop
- Featured Image id disappeared
- Re-writing MySQl query for execute faster
- Is there any wordpress function to update a random post every 10 minutes?
- Getting error “The package could not be installed. PCLZIP_ERR_BAD_FORMAT ”
- A simple script/plugin to display specific page upon hierarchy of selections
- Editing “Kahi’s Highlight Used Categories” plugin code – highlighting parent and child category in post page
- Does a Google + RSS Plugin Exist?
- Making a Plugin work based on URL Location
- Showing author box on post detail page
- What is the correct method for updating post content from a plugin?
- Next and Previous Pagination button not displaying in WordPress
- I Need To Display A Specific Product (Called By Meta Field) On It’s Current WooCommerce Category Page
- query_vars in plugin when using custom permalinks
- add_action() not working for admin
- WordPress Plugin translation not working EN To FR
- i have updated my wordpress to 6.3 and getting these errors. please help
- Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1
- Framework plugin inside wordpress