首页 WordPress函数大全 get_available_languages()

get_available_languages()

2020-05-01 / 2329阅 / 悠然

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

get_available_languages( string $dir = null )

Get all available languages based>

Contents

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

描述

The default directory is WP_LANG_DIR.

参数

$dir

(string)
(Optional)
A directory to search for language files. Default WP_LANG_DIR.

Default value: null

返回

(string[]) An array of language codes or an empty array if no languages are present. Language codes are formed by stripping the .mo extension from the language file names.

大家谈论
    我的见解