Fires before a widget's display callback is called.
$widgetarray$namestring
$idstring
$callbackcallable
$paramsarray
$classnamestring
$descriptionstring
$_callbackarray
wp-includes/widgets.php:844dynamic_sidebar()wp-includes/widgets.php:2054wp_render_widget() * @type string $classname CSS class applied to the widget container. * @type string $description The widget description. * @type array $_callback When the hook is fired on the back end, `$_callback` is populated * with an array containing the widget object, see `$callback`. * } */ do_action( 'dynamic_sidebar', $wp_registered_widgets[ $id ] ); if ( is_callable( $callback ) ) { call_user_func_array( $callback, $params ); $did_one = true; } }Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.