Title: WP_Widget::_get_update_callback
Published: April 25, 2014
Last modified: May 20, 2026

---

# WP_Widget::_get_update_callback(): callable

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#wp--skip-link--target)

Retrieves the widget update callback.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#return)󠁿

 callable Update callback.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#source)󠁿

    ```php
    public function _get_update_callback() {
    	return array( $this, 'update_callback' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-widget.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-widget.php#L310)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-widget.php#L310-L312)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Widget::_register_one()](https://developer.wordpress.org/reference/classes/wp_widget/_register_one/)`wp-includes/class-wp-widget.php` |

Registers an instance of the widget class.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_widget/_get_update_callback/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_widget%2F_get_update_callback%2F)
before being able to contribute a note or feedback.