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



wp_get_translation_update_id › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_get_translation_update_id ( $update )
Parameters:
  • (array|object) $update Translation update data.
    Required: Yes
Returns:
  • (string) Translation update identifier.
Defined at:
Codex:

Gets a stable identifier for a translation update.



Source

function wp_get_translation_update_id( $update ) {
	$update = (object) $update;

	return md5(
		wp_json_encode(
			array(
				'type'     => $update->type ?? '',
				'slug'     => $update->slug ?? '',
				'language' => $update->language ?? '',
				'version'  => $update->version ?? '',
			)
		)
	);
}