I’m using twentytwelve theme with 1.0 version. I saw many codes like following,
'name' = __('page','twentytwelve');
If I give,
'name' = 'page';
It’s also working fine. Then why using __()
?
What is use of that?
I’m using twentytwelve theme with 1.0 version. I saw many codes like following,
'name' = __('page','twentytwelve');
If I give,
'name' = 'page';
It’s also working fine. Then why using __()
?
What is use of that?
Comments are closed.
__()
is used when the message is passed as an argument to another function._e()
is used to write the message directly to the page. More detail on this @ http://codex.wordpress.org/Translating_WordPress