WP_Widget::widget

Advertisement

Summery Summery

Echoes the widget content.

Syntax Syntax

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

Description Description

Subclasses should override this function to generate their widget code.

Parameters Parameters

$args

(Required) Display arguments including 'before_title', 'after_title', 'before_widget', and 'after_widget'.

$instance

(Required) The settings for the particular instance of the widget.

Source Source

File: wp-includes/class-wp-widget.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply