
如何开发一款WordPress子主题
apply_filters( 'plugin_locale', determine_locale()
plugin_locale。这个过滤器用于指定插件的文本域,并确定用于翻译插件的字符串的正确的locale。它把locale作为一个参数,并返回翻译后的locale。
过滤一个插件的地域。
$locale = apply_filters( 'plugin_locale', determine_locale(), $domain );