Translations::merge_with( Object $other )

Merge $other in the current object.

Parameters

$other

(Object) (Required) Another Translation object, whose translations will be merged in this one (passed by reference).

Return

(void)

Source

File: wp-includes/pomo/translations.php

function merge_with( &$other ) {
			foreach ( $other->entries as $entry ) {
				$this->entries[ $entry->key() ] = $entry;
			}
		}

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/translations/merge_with