Translations::add_entry( array|Translation_Entry $entry )

Add entry to the PO structure


Description Description


Parameters Parameters

$entry

(array|Translation_Entry) (Required)


Top ↑

Return Return

(bool) true on success, false if the entry doesn't have a key


Top ↑

Source Source

File: wp-includes/pomo/translations.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;
		}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.