Uses
Uses | Description |
---|---|
wp-includes/pomo/entry.php: Translation_Entry::__construct() |
Add entry to the PO structure
(array|Translation_Entry) (Required)
(bool) true on success, false if the entry doesn't have a key
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; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/translations/add_entry