WordPress at a glance
function is not described

Translations::add_entry() public WP 1.0

Add entry to the PO structure

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

No Hooks.

Return

true|false. true on success, false if the entry doesn't have a key

Usage

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

Code of Translations::add_entry() WP 5.7

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