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



pre_load_textdomain › WordPress过滤钩子

Since6.3.0
已弃用n/a
apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale )
参数: (4)
  • (bool|null) $loaded The result of loading a .mo file. Default null.
    Required: Yes
  • (string) $domain Text domain. Unique identifier for retrieving translated strings.
    Required: Yes
  • (string) $mofile Path to the MO file.
    Required: Yes
  • (string|null) $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 );