Used By
Used By | Description |
---|---|
wp-includes/class-wp-widget.php: WP_Widget::display_callback() | Generates the actual widget content (Do NOT override). |
Echoes the widget content.
Subclasses should override this function to generate their widget code.
(array) (Required) Display arguments including 'before_title', 'after_title', 'before_widget', and 'after_widget'.
(array) (Required) The settings for the particular instance of the widget.
File: wp-includes/class-wp-widget.php
public function widget( $args, $instance ) { die( 'function WP_Widget::widget() must be overridden in a subclass.' ); }
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/WP_Widget/widget