dynamic_sidebar – action

Fires before a widget’s display callback is called. Note: The action fires on both the front end and back end, including for widgets in the Inactive Widgets sidebar on the Widgets screen.

The action is not fired for empty sidebars.

Parameters

.
( 3.0.0 ) . .
$widget
( array ) { An associative array of widget arguments. . . .
( string ) $name Name of the widget. . . .
( string ) $id Widget ID. . . .
$callback
( callable ) When the hook is fired on the front end, `$callback` is an array containing the widget object. Fired on the back end, `$callback` is ‘wp_widget_control’, see `$_callback`. . . .
( array ) $params An associative array of multi-widget arguments. . . .
( string ) $classname CSS class applied to the widget container. . . .
( string ) $description The widget description. . . .
( array ) $_callback When the hook is fired on the back end, `$_callback` is populated with an array containing the widget object, see `$callback`. } . . .
API Letters: ,

Implementers