[wp-hackers] _e(), _() and __()

Stephen O'Connor steve at stevarino.com
Sat Jul 3 21:30:37 UTC 2004


Okay, just peeked into phpxref... _() does absolutely nothing - it just
returns whatever string it's given. I think I remember something about it
being simply a backwards compatible thing (it's referenced 83 times, all in
either the class-pop3.php or textile1.php. :)

The __() returns a localized or translated string I think. Not exactly sure
how that works. :\ _e() does the exact same thing, only it echo's what it's
given.

Whenever you have a question about functions you should check out the online
version of phpxref. It's been a lifesaver for me.

http://www.cenamayo.com/wpxref/nav.html?index.html

- Stephen

> -----Original Message-----
> From: hackers-bounces at wordpress.org
> [mailto:hackers-bounces at wordpress.org]On Behalf Of
> dave at xmouse.ithium.net
> Sent: Saturday, July 03, 2004 8:27 AM
> To: hackers at wordpress.org
> Subject: [wp-hackers] _e(), _() and __()
>
>
> I'm seeing these function calls all over the new WP code. I'm
> aware what they
> do: _ and __ just return the string passed to it whilst _e echoes
> it, but why
> are they in there at all?
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>




More information about the hackers mailing list