is_active_widget Wordpress function


Description:

Whether widget is displayed on the front-end.


Syntax:


Arguments:

(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:

wp-includes/widgets.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/is_active_widget


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