$current_language_code = apply_filters( 'wpml_current_language', null ); alert($current_language_code); function alert($msg) { echo ""; }