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:
- Echo user id of users in seperate table
- How to upload multiple files/images when developing a wordpress plugin?
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- HelpDesk solution for WordPress [closed]
- Best practice for including plugin output in a template without using shortcode?
- Recommend a flexible lightbox that allows an image or HTML to be used
- How to apply next/previous classes to LIs for pagination links?
- How to add an element right after the article using jQuery?
- How to reset wordpress but not plugins and settings
- WordPress reliability
- How do I avoid having duplicate of plugin in trunk?
- How to create wordpress widget that is fixed position on the home page
- Use current class method inside add_submenu_page()
- Php page with filters for custom fields
- How can I fetch data from another website to my wordpress website with mysql database
- How to translate WP Blog (search, category etc.)?
- How can I concatenate variables to search results title? [closed]
- Advanced WordPress plugin activation detection
- Switch from wp-cron to a server cron job
- how to change wp-admin url using function file
- How to pass a query string to another page on the same site?
- How to change php variable value using wp setting api
- How can I add a fixed vertical menu to my site? [closed]
- WordPress plugin: efficient way to store large data
- Not able to override plugin’s default css rules
- Allow multiple selection of user roles
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- Custom characters of tinymce editor are saved as question mark
- Language translation on a fresh english installation
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Disable Author Archive just for certain roles in bulk
- Sage wordpress add customize register
- Seperate plugin and theme files
- Managing and deleting transients with dynamically generated transient names
- How to make PDF books readable on site with woo-commerce?
- How to implement color picker from WordPress in my boilerplate plugin?
- custom post type plugin error [closed]
- get_post_meta shortcode returns empty field
- Sharing varible between two add_actions
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- How to change WordPress core language using Loco Translate?
- Removing Plugin Action via Theme for Non-admins
- Elementor JetEngine Listing Grid paging option
- Admin menu hilighting wrong item for CPT
- I would like to add a function that allows the customer to add multiples of the same product to their basket, how can I do this easily?
- How to disable/enable PHP plugin functionality based on a TinyMCE toggle-button
- How to give .html extension to just one post not all post
- Override filter variable not working
- Automatic set a featured image from the first image’s url (or tag) in the article
- flip horizontal images in bulk
- Why all my wordpress sites keeps telling me that everything is up to date at /wp-admin/update-core.php?
- How can I save cookies to members
- How to use get_user_by in plugin
- Can I Embed a Contact Form within a Contact Form Using Contact Form 7 in WordPress
- Using Widget Logic to place menu on multiple pages?
- Creating wordpress admin page panel [Theme Option]
- ‘Easy Template Path Hints’ for WordPress?
- datetime jquery UI not showing after theme update
- Inactive Plugin Files
- Any way to edit/crop my featured image upon uploading?
- Translating wordpress plugin
- Ajax return 0 in plugin – ajax only used in wp-admin
- URL RewriteRule doesn’t work when using WP Database Participants in my WordPress website
- Strip shortcode from excerpt [duplicate]
- Upload an image in wordpress plugin
- Plugin – including external javascript calling google maps
- Plugin Hooks Not Shown in WP Cron Jobs
- Some of my php is rendered only when logged as admin
- Contents are missing but shown when switching to another theme in wordpress
- product_tag to style an image
- HTTP Error 403 When Trying to Login
- plugin’s script and style enqueing not working on Thesis
- Posts 2 posts plugin loop echo the_title not working
- Pulling sub-site content into specific pages
- WordPress site down after installing a plugin. Can’t connect with FTP with correct details
- add query string to all pages after user logged in
- get_post_meta does not work
- Using wp config to connect to a DB from a plugin
- HTML link within my plugin settings page
- How to create post comparison in wordpress
- How can I create a navigation menu in the sidebar that can also act like a slider?
- WordPress alert bar is in the wrong location on page for plugin
- Blog page id different then in main menu
- WordPress restriction to the whole website
- How can I get the permalink of a page on which shortcode has been used
- How to put tags on photos in Windows that WordPress can read and apply on media files?
- List category-posts not work properly
- Auto-scroll to beginning of accordion item
- A splash page on landing page
- I cannot login after installing the wp-login timeout setting plugin
- Fatal Error in my WP “Call to undefined function get_option()”
- Issue using form in Google app in mobile
- No WP-Content Folder in Website Files, No Ability to Disable Plugins Manually
- Product image import
- Allowing users to install a predefined bundle of plugins and themes with one action
- Uncaught ArgumentCountError
- Secure way to add JS Script to WordPress filesystem
- Not applying update field (acf) in my plugin
- WP galleries in posts after import. How do I do it?