Using the following snippet, you will be able to test whether a plugin is active or not in WordPress.
1 2 3 4 5 | <?php if (is_plugin_active('plugin-directory/plugin-file.php')) { // the plugin is active } ?> |
Snippet Credit/Source: CatsWhoCode