Translations::translate_entry() WordPress Method
The Translations::translate_entry() method is used to translate a WordPress entry from one language to another. This is useful for posts or pages that have been created in one language but need to be translated into another language for international readers.
Translations::translate_entry( Translation_Entry $entry ) #
Contents
Parameters
- $entry
(Translation_Entry)(Required)
Source
File: wp-includes/pomo/translations.php
public function translate_entry( &$entry ) { $key = $entry->key(); return isset( $this->entries[ $key ] ) ? $this->entries[ $key ] : false; }
Expand full source codeCollapse full source codeView on TracView on GitHub