Can someone show me the right code? I'm trying to do what's called Hiding Plugins When Deactivated, in my sidebar template.
The plugin code I want to check-for is php echo getad('rotate-covers') to prevent an error in my sidebar when Ad Rotator plugin is deactivated. I tried the code below and it didn't seem to work,
<?php
if (function_exists('getad')) {
echo getad('rotate-covers'); ?>
How do I do the "if" check for this plugin example?