the_widget


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

Parameters:
  • (string) widget The widget's PHP class name (see class-wp-widget.php).
  • (array) instance Optional. The widget's instance settings. Default empty array.
  • (array) args { Optional. Array of arguments to configure the display of the widget. @type string $before_widget HTML content that will be prepended to the widget's HTML output. Default `<div class="widget %s">`, where `%s` is the widget's class name. @type string $after_widget HTML content that will be appended to the widget's HTML output. Default `</div>`. @type string $before_title HTML content that will be prepended to the widget's title when displayed. Default `<h2 class="widgettitle">`. @type string $after_title HTML content that will be appended to the widget's title when displayed. Default `</h2>`. }
Defined at:

Description

Output an arbitrary widget as a template tag.

Related Functions

the_id, is_active_widget, retrieve_widgets, the_date, the_guid

Top Google Results

User discussions

wpseek mobile