Test if a plugin is active

Paste the code anywhere on your theme files where you need to test if a specific plugin is active.

   if (is_plugin_active('plugin-directory/plugin-file.php')) {
      // the plugin is active

Share this snippet

  • Jonas

    If it’s an active plugin, wouldn’t it just be easier to go test it in action?