wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_translation_updates_by_id › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_get_translation_updates_by_id ( $updates = null )
Parameters:
  • (object[]|null) $updates Optional. Translation update objects. Default null.
    Required: No
    Default: null
Returns:
  • (object[]) Translation updates keyed by identifier.
Defined at:
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;
}