Title: wp_get_translation_updates
Published: April 25, 2014
Last modified: August 20, 2026

---

# wp_get_translation_updates(): object[]

## In this article

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

Retrieves a list of all language updates available.

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

 object[] Array of translation objects that have available updates.

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

    ```php
    function wp_get_translation_updates() {
    	$updates    = array();
    	$transients = array(
    		'update_core'    => 'core',
    		'update_plugins' => 'plugin',
    		'update_themes'  => 'theme',
    	);

    	foreach ( $transients as $transient => $type ) {
    		$transient = get_site_transient( $transient );

    		if ( empty( $transient->translations ) ) {
    			continue;
    		}

    		foreach ( $transient->translations as $translation ) {
    			$updates[] = (object) $translation;
    		}
    	}

    	return $updates;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/update.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/update.php#L900)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/update.php#L900-L921)

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

| Uses | Description | 
| [get_site_transient()](https://developer.wordpress.org/reference/functions/get_site_transient/)`wp-includes/option.php` |

Retrieves the value of a site transient.

  |

| Used by | Description | 
| [WP_Automatic_Updater::run()](https://developer.wordpress.org/reference/classes/wp_automatic_updater/run/)`wp-admin/includes/class-wp-automatic-updater.php` |

Kicks off the background update process, looping through all pending updates.

  | 
| [Language_Pack_Upgrader::async_upgrade()](https://developer.wordpress.org/reference/classes/language_pack_upgrader/async_upgrade/)`wp-admin/includes/class-language-pack-upgrader.php` |

Asynchronously upgrades language packs after other upgrades have been made.

  | 
| [Language_Pack_Upgrader::bulk_upgrade()](https://developer.wordpress.org/reference/classes/language_pack_upgrader/bulk_upgrade/)`wp-admin/includes/class-language-pack-upgrader.php` |

Upgrades several language packs at once.

  | 
| [list_translation_updates()](https://developer.wordpress.org/reference/functions/list_translation_updates/)`wp-admin/update-core.php` |

Display the update translations form.

  | 
| [wp_get_update_data()](https://developer.wordpress.org/reference/functions/wp_get_update_data/)`wp-includes/update.php` |

Collects counts and UI strings for available updates.

  |

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

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

## User Contributed Notes

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