the_widget action-hookWP 3.0.0

Fires before rendering the requested widget.

Usage

add_action( 'the_widget', 'wp_kama_the_widget_action', 10, 3 );

/**
 * Function for `the_widget` action-hook.
 * 
 * @param string $widget   The widget's class name.
 * @param array  $instance The current widget instance's settings.
 * @param array  $args     An array of the widget's sidebar arguments.
 *
 * @return void
 */
function wp_kama_the_widget_action( $widget, $instance, $args ){

	// action...
}
$widget(string)
The widget's class name.
$instance(array)
The current widget instance's settings.
$args(array)
An array of the widget's sidebar arguments.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

the_widget()
the_widget
wp-includes/widgets.php 1258
do_action( 'the_widget', $widget, $instance, $args );

Where the hook is used in WordPress

Usage not found.