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.


Top ↑

Source

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

	public function _get_update_callback() {
		return array( $this, 'update_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.