WordPress plugins: How to activate plugins programmatically (via code)?
WordPress Tutorial: Learn how you can activate plugins programmatically (via code) and using cPanel and functions.php file. The same can be achieved using FTP as well – basically, you will need to have access to your Website files and folders.
The video gives you step-by-step instructions to activate the plugin and finding the plugin’s name and folder name to use on the code. However, please note that the plugin activated via code cannot be deactivated unless the code has been removed from the website. So you will have to remove the code from the site and only you can deactivate the plugin (This has also been explaining in the video).