Asked 7 years ago
11 May 2017
Views 1495

posted

what is use of _e function in wordpress ?

i seen use of _e function in WordPress.


<?php _e( $text) ?>


so what is difference between simple echo function of the PHP and _e function of wordpress.


<?php 
_e($text);
echo($text);
 ?>


i think both give same output which print something ? what do you say what is use of _e function in wordpress ?


Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00

_e function translate string first and than output it . and where echo direct print

WordPress support multiple language , so when you write some label or text in code . you cant simple echo it but you need to follow standard function to do it is _e which support multi language translation feature ,
Post Answer