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' );

 


Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer and a blogger by hobby.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.