• Hi

    I understand that e() function will echo the string inside the (). In my theme, I have <?php e(‘Said’); ?> in my comment template. If I take that php out and just make it, Said, would that help to increase the speed?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Why not use echo, the typical PHP function?

    Plus, if this is non-dynamic HTML, it makes more sense to me to build it into your code as standard code rather than PHP generated.

    Thread Starter guel

    (@guel)

    Is it still okay to replace that if that code comes after the below?

    <?php else : ?>

    _e() is for localization I believe….. (not sure if we are referencing the same thing)

    It’s so that things can be translated

    Thread Starter guel

    (@guel)

    I’m not sure what is a localization.
    But after all, is it okay to replace with html instead of that php code?

    thanks

    It should be fine…

    localization provides a way for WP to be translated.

    the _e() stuff allows people to translate WP, so they can upload language files to WP, and swap their own language in. That way you can develop a theme in your own language, but make it so other people can translate it

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