WPLANGoption. Older tutorials will recommend the
WP_LANGconstant, but this has been deprecated
wp-content/languagesfolder before the change takes full effect.
echo esc_html( __( '','' ) )by using the helper functions:
eto the function name:
echostatement isn't needed.
esc_html_ehelper functions are sometimes misused as a substitute for
echo esc_html. This is incorrect and can lead to problems. This is because
esc_html_eis actually shorthand for
echo esc_html( __(. You may find your value is localised into something unexpected.
n-pluralsfield. This determines the way plural forms work in a language for a particular file.
eval. Because of this, it's very easy to craft a language file with a primitive PHP shell.
WP_LANGconstant mentioned earlier, and add this code to set the admin area language to english: