Translations::merge_with()publicWP 1.0

Merge $other in the current object.

Method of the class: Translations{}

No Hooks.

Return

null. Nothing.

Usage

$Translations = new Translations();
$Translations->merge_with( $other );
$other(Object) (required) (passed by reference — &)
Another Translation object, whose translations will be merged in this one (passed by reference).

Translations::merge_with() code WP 6.1.1

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