检索所有可用语言更新的列表。

原型

wp_get_translation_updates()

返回值

(array)  

源文件

路径:wp-includes/update.php

<?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;
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/wp_get_translation_updates/