wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_load_textdomain › WordPress过滤钩子

Since6.3.0
已弃用n/a
› apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale )
参数: (4)
  • () loaded The result of loading a .mo file. Default null.
    Required: Yes
  • () domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
  • () mofile Path to the MO file.
    Required: Yes
  • () locale Locale.
    Required: Yes
定义在:
文档:

Filters whether to short-circuit loading .mo file.

Returning a non-null value from the filter will effectively short-circuit the loading, returning the passed value instead.




源码

$loaded = apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale );