do_action( 'the_widget', string $widget, array $instance, array $args )
- Since
- 3.0.0
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.
Fired at · 1
wp-includes/widgets.php:1268the_widget()
Source
View on Trac ↗View on GitHub ↗
1262<?php1263 * @since 3.0.01264 *1265 * @param string $widget The widget's class name.1266 * @param array $instance The current widget instance's settings.1267 * @param array $args An array of the widget's sidebar arguments.1268 */1269 do_action( 'the_widget', $widget, $instance, $args );1270 1271 $widget_obj->_set( -1 );1272 $widget_obj->widget( $args, $instance );1273}1274 1275/**
History
Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.