WP_Widget::widget( array $args, array $instance )

In this article

Echoes the widget content.

Description

Subclasses should override this function to generate their widget code.

Parameters

$argsarrayrequired
Display arguments including 'before_title', 'after_title', 'before_widget', and 'after_widget'.
$instancearrayrequired
The settings for the particular instance of the widget.

Source

public function widget( $args, $instance ) {
	die( 'function WP_Widget::widget() must be overridden in a subclass.' );
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.