wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_get_translation_updates_by_id › WordPress Function

Since7.2.0
已弃用n/a
› wp_get_translation_updates_by_id ( $updates = null )
参数:
  • (object[]|null) $updates Optional. Translation update objects. Default null.
    Required: No
    默认: null
返回:
  • (object[]) Translation updates keyed by identifier.
定义在:
文档:

Gets translation updates keyed by their stable identifiers.



源码

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