I have a plugin activated and working, and I installed and activated another plugin I wrote to communicate with it. However when I run is_plugin_active() I get false returned - does anyone have any idea why and how to rectify it?
EDIT: some basic code. I am in the admin area, and I'm trying to use the functions of the other plugin ultimately. But the initial check is quite basic:
if (is_plugin_active('Plugin2')) {
echo 'Thanks for installing Plugin2';
} else {
echo 'Please install Plugin2';
}
EDIT2: Per the codex, you do NOT need the filepath if you're using in the admin side. But I tried with the full path, as modified here, which also did not work.
if (is_plugin_active('Plugin2/Plugin2.php')) {
echo 'Thanks for installing Plugin2';
} else {
echo 'Please install Plugin2';
}
.php
extension) for this to work correctly.Plugin2
the actual slug of the Plugin, or is it an "example" Plugin slug? Also: in what directory isPlugin2
installed?