Translation_Entry::key()
Generates a unique key for this entry.
Метод класса: Translation_Entry{}
Хуков нет.
Возвращает
Строку|false
. The key or false if the entry is null.
Использование
$Translation_Entry = new Translation_Entry(); $Translation_Entry->key();
Список изменений
С версии 2.8.0 | Введена. |
Код Translation_Entry::key() Translation Entry::key WP 6.6.2
public function key() { if ( null === $this->singular ) { return false; } // Prepend context and EOT, like in MO files. $key = ! $this->context ? $this->singular : $this->context . "\4" . $this->singular; // Standardize on \n line endings. $key = str_replace( array( "\r\n", "\r" ), "\n", $key ); return $key; }