What is difference between _e()
and __()
functions for the translation? In what cases e()
and __ ()
should be used?
If you want to echo
the translated string, then you will be using _e
and when you just want to have the translated string, then you will be using __
.
Example:
_e('this is a message', 'twentyfourteen');
is same as
echo __('this is a message', 'twentyfourteen');