apply_filters( ‘widget_display_callback’, array $instance, WP_Widget $widget, array $args )

Filters the settings for a particular widget instance.

Description

Returning false will effectively short-circuit display of the widget.

Parameters

$instancearray
The current widget instance’s settings.
$widgetWP_Widget
The current widget instance.
$argsarray
An array of default widget arguments.

Source

$instance = apply_filters( 'widget_display_callback', $instance, $this, $args );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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