Forced language in functions.php
-
Hi,
I’m bulding ajax theme and ran into small issue:
I send JS request, intercept it with action hook on backend side, generate html content to send, but when I translate it, it comes in default language.
How can I force translation to my current language?add_action('jx_x25dataflow', function($jx) { $page = get_page($pageID); $ret = __($page->post_content); });
The topic ‘Forced language in functions.php’ is closed to new replies.