anycomment.io
anycomment.io copied to clipboard
WPMultilang support
if ( file_exists( dirname( __FILE__, 2 ) . '/wp-multilang/wp-multilang.php' ) ) {
if ( ! class_exists( 'WP_Multilang' ) ) {
include dirname( __FILE__, 2 ) . '/wp-multilang/wp-multilang.php';
}
add_filter( 'locale', 'set_locale', 0 );
function set_locale() {
return wpm_get_languages()[ wpm_get_language() ];
}
}
from https://vk.com/settings?w=wall-170415773_955_r1024