So many questions on Stack Exchange and too many poor answers with outdated solutions… how can you force install a plugin inside your WP theme safely?
Side note, this plugin has an interesting function for external URL installs of plugins:
https://plugins.trac.wordpress.org/browser/plugin-installer-from-public-url/trunk/plugin-installer-from-public-url.php
Related thread on SE
https://wordpress.stackexchange.com/questions/107009/automatically-install-wordpress-plugin-at-theme-activation
the magic question 😏
Enter the destination URL
Or link to existing content