WP_Widget::_get_display_callback() WordPress Method

The WP_Widget::_get_display_callback() method is used to get the display callback for a particular widget. This is useful for customizing the way a widget is displayed on a per-instance basis.

WP_Widget::_get_display_callback() #

Retrieves the widget display callback.


Return

(callable) Display callback.


Top ↑

Source

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

	public function _get_display_callback() {
		return array( $this, 'display_callback' );
	}


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.