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.
Source
File: wp-includes/class-wp-widget.php
public function _get_display_callback() { return array( $this, 'display_callback' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |