Winter Solstice sale! 30% Off code: SOLSTICE24 Shop Now

ends midnight 12/21 PST

How to Include Additional Languages

Last Updated: February 10, 2015

With the below code placed in your function.php file (this file is inside your currently activated theme folder) you should be able to support more than 3 languages for translation in EventON Settings > Language

add_filter('eventon_lang_var_count','eventon_lang_count', 10, 1);
add_filter('eventon_lang_variation','eventon_lang_vars', 10, 1);
function eventon_lang_count($count){
	// return 6 to support 3 additional languages on top of 3 existing ones
	return 6;
}
function eventon_lang_vars($array){
	// add our additional 3 languages
	$new_array = array('L4','L5','L6');
	return  array_merge($array, $new_array);
}

 

 

Did this article help you?

Ready to setup your calendar?