W3cubDocs

/WordPress

apply_filters( 'widget_display_callback', array $instance, WP_Widget $this, array $args )

Filters the settings for a particular widget instance.

Description

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

Parameters

$instance

(array) The current widget instance's settings.

$this

(WP_Widget) The current widget instance.

$args

(array) An array of default widget arguments.

Source

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

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_display_callback