Ever wonder if your widget 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): Continue reading “How to Tell if Your WordPress Widget is Active”