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



pre_get_language_files_from_path › WordPress过滤钩子

Since6.5.0
已弃用n/a
apply_filters( 'pre_get_language_files_from_path', null, $path )
参数: (2)
  • (null|array) $files List of translation files. Default null.
    Required: Yes
  • (string) $path The path from which translation files are being fetched.
    Required: Yes
定义在:
文档:

Filters the translation files retrieved from a specified path before the actual lookup.

Returning a non-null value from the filter will effectively short-circuit the MO files lookup, returning that value instead.

This can be useful in situations where the directory contains a large number of files and the default glob() function becomes expensive in terms of performance.





源码

$files = apply_filters( 'pre_get_language_files_from_path', null, $path );