is_active_widget Wordpress function


Whether widget is displayed on the front-end.



(string) $callback Optional, Widget callback to check.
(int) $widget_id Optional, but needed for checking. Widget ID.
(string) $id_base Optional, the base ID of a widget created by extending WP_Widget.
(bool) $skip_inactive Optional, whether to check in 'wp_inactive_widgets'.

Return Type:

(mixed) false if widget is not active or id of sidebar in which the widget is active.

Define At:


Wordpress Reference URL:

0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×