将下面代码添加到functions.php中,就可以引用到模板语言文件。
load_theme_textdomain('wodepress', get_template_directory().'/languages' );
原文
这篇文章指导读者如何在WordPress的functions.php文件中加载并引用wodepress主题的模板语言文件,以实现多语言支持。
将下面代码添加到functions.php中,就可以引用到模板语言文件。
load_theme_textdomain('wodepress', get_template_directory().'/languages' );
原文

被折叠的 条评论
为什么被折叠?