Tag Archives: WordPress Widget

How to tell if your WordPress Plugin or Widget is Activated in WordPress

Check your plugin or widget activation & settings

Ever wonder if your widget or plugin is activated on an external site?

Here’s how to find out.

When you register a sidebar widget, you use code like this:

register_sidebar_widget(array('Name of Widget', 'class-of-widget'), 'widget_function');

If you want to check whether the widget is activated (you may want to for a variety of reasons), you can do it like this (the “class-of-widget” value from above will be used in the code below):

Posted in Web Development, WordPress | Tagged , , , , , , , | 4 Comments