wp_ajax_update_widget

The timeline below displays how wordpress function wp_ajax_update_widget has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.3

/**
 * Handles updating a widget via AJAX.
 *
 * @since 3.9.0
 *
 * @global WP_Customize_Manager $wp_customize
 */
function wp_ajax_update_widget()
{
    global $wp_customize;
    $wp_customize->widgets->wp_ajax_update_widget();
}

WordPress Version: 5.6

/**
 * Ajax handler for updating a widget.
 *
 * @since 3.9.0
 *
 * @global WP_Customize_Manager $wp_customize
 */
function wp_ajax_update_widget()
{
    global $wp_customize;
    $wp_customize->widgets->wp_ajax_update_widget();
}

WordPress Version: 4.3

/**
 * Ajax handler for saving a widget.
 *
 * @since 3.9.0
 *
 * @global WP_Customize_Manager $wp_customize
 */
function wp_ajax_update_widget()
{
    global $wp_customize;
    $wp_customize->widgets->wp_ajax_update_widget();
}

WordPress Version: 4.0

/**
 * Ajax handler for saving a widget.
 *
 * @since 3.9.0
 */
function wp_ajax_update_widget()
{
    global $wp_customize;
    $wp_customize->widgets->wp_ajax_update_widget();
}

WordPress Version: 3.9

function wp_ajax_update_widget()
{
    global $wp_customize;
    $wp_customize->widgets->wp_ajax_update_widget();
}