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:1266the_widget()
Source
View on Trac ↗View on GitHub ↗
1260<?php1261 * @since 3.0.01262 *1263 * @param string $widget The widget's class name.1264 * @param array $instance The current widget instance's settings.1265 * @param array $args An array of the widget's sidebar arguments.1266 */1267 do_action( 'the_widget', $widget, $instance, $args );1268 1269 $widget_obj->_set( -1 );1270 $widget_obj->widget( $args, $instance );1271}1272 1273/**
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 6.8.8 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.