首页 WordPress函数大全 load_default_textdomain()

load_default_textdomain()

2020-05-02 / 3722阅 / 悠然

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

load_default_textdomain( string $locale = null )

加载基于默认翻译字符串>

Contents

  • Description
    • See also
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

从WordPress根目录以WP_LANG_DIR常量路径加载.mo文件。转换后的(.mo)文件的命名基于id =“ see-also” tabindex =“-1”>另请参阅另请参见
See also

  • load_textdomain()

Top ↑

参数

$locale

(string)
(Optional)
Locale to load. Default is the value of get_locale().

Default value: null

返回

(bool) Whether the textdomain was loaded.

大家谈论
    我的见解