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

Echoes the widget content.


Description Description

Sub-classes should over-ride this function to generate their widget code.


Parameters Parameters

$args

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

$instance

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


Top ↑

Source Source

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

	public function widget( $args, $instance ) {
		die('function WP_Widget::widget() must be over-ridden in a sub-class.');
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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