When you’re developing a theme or a plugin for the WordPress platform, you may need to check whether a specific plugin is activated. Well, here’s a simple script to check whether a plugin is activated or not in the wordpress administration panel.
You’ll only need to change line 4 to your plugin’s directory name.
Note: Plugins are located in the directory: /wp-content/plugins/
| |
That was another tip for the WordPress platform.
You can find more details about the is_plugin_active() function in the
official WordPress Documentation.
Questions? Leave a comment!