• eli

    (@eli2k)


    I noticed a particular theme used the following PHP line:

    <?php _e(‘Archives’); ?>

    I was wondering what that does, because it seems to generate the text Archives in its place, and it would seem easier to just type Archives instead of including in the PHP code, but I’m assuming _e() must be doing something else.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • eridan

    (@eridan)

    It’s just ‘echoing’ the test. (printing it on your website)

    Thread Starter eli

    (@eli2k)

    Thanks for the quick reply.

    Is this a programming style preference, or is there any advantage to doing that?

    eridan

    (@eridan)

    I don’t see the advantage doing it 🙂

    junebleeds

    (@junebleeds)

    Localizing WordPress

    Take a look under the “Localization Technology” heading. It’ll tell you exactly what _e(‘message’) and __(‘message’) is for. Hope that helps a little.

    Thread Starter eli

    (@eli2k)

    Thanks. That provided a good explanation. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Question’ is closed to new replies.