wp_get_translation_updates() – Retrieves a list of all language updates available.
You appear to be a bot. Output may be restricted
Description
Retrieves a list of all language updates available.
Usage
$object[] = wp_get_translation_updates();
Parameters
Returns
object[] Array of translation objects that have available updates.
Source
File name: wordpress/wp-includes/update.php
Lines:
1 to 22 of 22
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; }