How To Activate WordPress Plugins via Code

Prem Tiwari - - WordPress Snippets


How To Activate WordPress Plugins via Code | activate plugin wordpress function | activate plugin wordpress code

How To Activate WordPress Plugins via Code

Use the below code at the end of your functions.php file and save the file. Please change the plugin name in this line of codeĀ run_activate_plugin( 'akismet/akismet.php' );

 


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.