WordPress at a glance
function is not described

Translations::add_entry_or_merge() public WP 1.0

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

No Hooks.

Return

true|false. Null. Nothing.

Usage

$Translations = new Translations();
$Translations->add_entry_or_merge( $entry );
$entry *(array Translation_Entry) (required)*

Code of Translations::add_entry_or_merge() WP 5.7

<?php
function add_entry_or_merge( $entry ) {
	if ( is_array( $entry ) ) {
		$entry = new Translation_Entry( $entry );
	}
	$key = $entry->key();
	if ( false === $key ) {
		return false;
	}
	if ( isset( $this->entries[ $key ] ) ) {
		$this->entries[ $key ]->merge_with( $entry );
	} else {
		$this->entries[ $key ] = &$entry;
	}
	return true;
}