Fires before rendering the requested widget.
Parameters
$widgetstring- The widget’s class name.
$instancearray- The current widget instance’s settings.
$argsarray- An array of the widget’s sidebar arguments.
Source
do_action( 'the_widget', $widget, $instance, $args );
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
This action hook only fires when using the the_widget() function. It does not fire when widgets are rendered within a widgetized area (sidebar).