WP_Widget::display_callback

SummerySummery

Generates the actual widget content (Do NOT override).

Syntax

WP_Widget::display_callback( array $args, int|array $widget_args = 1 )

DescriptionDescription

Finds the instance and calls WP_Widget::widget().

ParametersParameters

$args

(array) (Required) Display arguments. See WP_Widget::widget() for information on accepted arguments.

$widget_args

(int|array) (Optional) Internal order number of the widget instance, or array of multi-widget arguments.

  • 'number'
    (int) Number increment used for multiples of the same widget.

Default value: 1

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top