[Plugin: WordPress Mobile Pack] Disabled Widgets for mobile users and Is_Active_Widget
-
I’m checking my widget with the worpdress mobile pack. When I hide the widget from mobile users the javascript is still loaded even though it won’t be used.
I’m using the following code in the constructor fo the widget
if is_active_widget( false, false, $this->id_base ) { ...queue javascript....
Is this the correct way to detect if widgets are disabled for mobile users?
- The topic ‘[Plugin: WordPress Mobile Pack] Disabled Widgets for mobile users and Is_Active_Widget’ is closed to new replies.