wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_get_translation_updates_by_id › WordPress Function

Od7.2.0
Przestarzałyn/a
› wp_get_translation_updates_by_id ( $updates = null )
Parametry:
  • (object[]|null) $updates Optional. Translation update objects. Default null.
    Wymagane: Nie
    Domyślny: null
Powrót:
  • (object[]) Translation updates keyed by identifier.
Zdefiniowane na:
Codex:

Gets translation updates keyed by their stable identifiers.



Źródło

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