May 2017
Beginner to intermediate
536 pages
14h 25m
English
WordPress provides a lot of translation functions for different scenarios. Among those functions, __ and _e are the most frequently used functions. Both these functions retrieve translated strings using the WordPress translate function. The difference between the two functions is that the first one returns the translated string, while the latter directly displays the translated string. Generally, we can use __() for variables and business logic, while _e() is used for templates. Apart from these two functions, there are many other functions such as _n(), _x(), esc_attr__(), and so on. These functions will be used in advanced use cases. You can learn more about these functions inside the codex using ...
Read now
Unlock full access