wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_get_translation_updates_by_id › WordPress Function

Depuis7.2.0
Dépréciéen/a
› wp_get_translation_updates_by_id ( $updates = null )
Paramètres:
  • (object[]|null) $updates Optional. Translation update objects. Default null.
    Requis: Non
    Défaut: null
Retourne:
  • (object[]) Translation updates keyed by identifier.
Défini(e) dans:
Codex:

Gets translation updates keyed by their stable identifiers.



Source

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