I mean is there a function like:
int plugin_activated(string filename);
returning true or false?
I mean is there a function like:
int plugin_activated(string filename);
returning true or false?
If you look in your admin Panel > Plugins doesn't show at the end of each line an "Active" or "Deactivate" link?
Php code has no eyes to look at the admin panel.
I don't know if there is a function that works like the one you mention - someone with more experience may be able to help, however you can check if a function in the plugin exists, thus validating its activation.
Lets say I want to check if Brian's Latest Comments plugin is activated, and if it is I want to display the latest comments.
<?php if (function_exists('blc_latest_comments') { >
<?php blc_latest_comments(); ?>
<?php } ?>
I don't think that's what stopthepress was after, but here's one tool that I use on my site. Perhaps it's hackable.
Whoops... drop the trailing slash:
Hmmm, yes it might work. will try.
Thanks neetij and yearginsm, will try both suggestions
This topic has been closed to new replies.