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



load_script_translations ›

Since5.0.2
已弃用n/a
apply_filters( 'load_script_translations', $translations, $file, $handle, $domain )
参数: (4)
  • (string) $translations JSON-encoded translation data.
    Required: Yes
  • (string) $file Path to the translation file that was loaded.
    Required: Yes
  • (string) $handle Name of the script to register a translation domain to.
    Required: Yes
  • (string) $domain The text domain.
    Required: Yes
定义在:
文档:

Filters script translations for the given file, script handle and text domain.





源码

return apply_filters( 'load_script_translations', $translations, $file, $handle, $domain );