wp_theme_update_rows

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

WordPress Version: 6.1

/**
 * Adds a callback to display update information for themes with updates available.
 *
 * @since 3.1.0
 */
function wp_theme_update_rows()
{
    if (!current_user_can('update_themes')) {
        return;
    }
    $themes = get_site_transient('update_themes');
    if (isset($themes->response) && is_array($themes->response)) {
        $themes = array_keys($themes->response);
        foreach ($themes as $theme) {
            add_action("after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2);
        }
    }
}

WordPress Version: 4.3

/**
 * @since 3.1.0
 */
function wp_theme_update_rows()
{
    if (!current_user_can('update_themes')) {
        return;
    }
    $themes = get_site_transient('update_themes');
    if (isset($themes->response) && is_array($themes->response)) {
        $themes = array_keys($themes->response);
        foreach ($themes as $theme) {
            add_action("after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2);
        }
    }
}

WordPress Version: 3.7

function wp_theme_update_rows()
{
    if (!current_user_can('update_themes')) {
        return;
    }
    $themes = get_site_transient('update_themes');
    if (isset($themes->response) && is_array($themes->response)) {
        $themes = array_keys($themes->response);
        foreach ($themes as $theme) {
            add_action("after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2);
        }
    }
}