Wordpress Templates: Check If Plugin Is Active


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. if (is_plugin_active('plugin-directory/plugin-file.php')) {
  3. //plugin is activated
  4. }
  5. ?>

URL: http://codex.wordpress.org/Function_Reference/is_plugin_active

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.