首页 WordPress函数大全 get_locale()

get_locale()

2020-05-01 / 4552阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_locale()

Retrieves the current locale.

描述

If the locale is set, then it will filter the locale in the ‘locale’ filter hook and return the value.

If the locale is not set already, then the WPLANG constant is used if it is defined. Then it is filtered through the ‘locale’ filter hook and the value for the locale global set and the locale is returned.

The process to get the locale should>‘locale’ hook.

Return Return

(string) The locale of the blog or from the 'locale' hook.

大家谈论
    我的见解