wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
wp_get_translation_updates › WordPress Function
Desde3.7.0
Obsoleton/a
› wp_get_translation_updates ( Sem parâmetros )
Retorna: |
|
Definido em: |
|
Codex: |
Retrieves a list of all language updates available.
Fonte
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; }