WP_Widget::_get_update_callback() WordPress Method
The WP_Widget::_get_update_callback() method is used to retrieve the update callback function for a widget. This function is used to update the widget settings when the user saves the widget form.
WP_Widget::_get_update_callback() #
Retrieves the widget update callback.
Return
(callable) Update callback.
Source
File: wp-includes/class-wp-widget.php
public function _get_update_callback() {
return array( $this, 'update_callback' );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |