wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_get_translation_updates_by_id › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_get_translation_updates_by_id ( $updates = null )
Parameter:
  • (object[]|null) $updates Optional. Translation update objects. Default null.
    Erforderlich: Nein
    Standard: null
Gibt zurück:
  • (object[]) Translation updates keyed by identifier.
Definiert in:
Codex:

Gets translation updates keyed by their stable identifiers.



Quellcode

function wp_get_translation_updates_by_id( $updates = null ) {
	if ( null === $updates ) {
		$updates = wp_get_translation_updates();
	}

	$translation_updates = array();

	foreach ( (array) $updates as $update ) {
		$translation_updates[ wp_get_translation_update_id( $update ) ] = (object) $update;
	}

	return $translation_updates;
}