Translations::merge_originals_with()publicWP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$Translations = new Translations();
$Translations->merge_originals_with( $other );
$other(object) (required) (passed by reference — &)
-

Code of Translations::merge_originals_with() WP 6.0

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