WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] What is _e, Exactly? (6 posts)

  1. Amulet
    Member
    Posted 8 years ago #

    Frequently in the templates, I see code like this:

    <?php _e("by")?>

    I understand what it's doing, but what exactly is _e? I didn't see that in the Template Tags, Conditional Tags or one other page about tags that I viewed in the Codex, and searching for "_e" doesn't result in anything. Where is this set? Thanks!

  2. Beel
    Member
    Posted 8 years ago #

    Used for language translatons, entiende?

    _e('Category') = Categoria

  3. moshu
    Member
    Posted 8 years ago #

    You can read about it here:
    Translating_WordPress#Localization_Technology

  4. leliathomas
    Member
    Posted 8 years ago #

    Not a huge explanation, but from the Writing a Plugin page from the Codex:

    _e($message, $domain)
    Searches the localization module for the translation of $message, and passes the translation to the PHP echo statement. If no translation is found for $message, it just echoes $message.

    __() is used when the message is passed as an argument to another function; _e() is used to write the message directly to the page.

    Lelia Katherine Thomas
    http://www.leliathomas.com

  5. Beel
    Member
    Posted 8 years ago #

  6. Amulet
    Member
    Posted 8 years ago #

    Thanks, all! Much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic