WPDev.one
Core Function
View Source on Trac ↗

the_widget()

the_widget( mixed $widget, mixed $instance = array(), mixed $args = array() )

Outputs an arbitrary widget as a template tag.

Parameters 2 required

Name / Type Description
$widget
string

The widget's PHP class name (see class-wp-widget.php).

Required
$instance
array

Optional. The widget's instance settings. Default empty array.

array

$args { Optional. Array of arguments to configure the display of the widget.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
2.8.0
Source File
wp-includes/widgets.php
Advertisement