On this page
do_action( 'the_widget', string $widget, array $instance, array $args )
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
File: wp-includes/widgets.php. View all references
do_action( 'the_widget', $widget, $instance, $args );
Related
Used By
| Used By | Description |
|---|---|
| the_widget() wp-includes/widgets.php | Output an arbitrary widget as a template tag. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_widget