WordPress at a glance
function is not described

Translations::merge_with() public WP 1.0

Merge $other in the current object.

{} It's a method of the class: Translations{}

No Hooks.


null. Null. Nothing.


$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).

Code of Translations::merge_with() WP 5.7.1

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