A WordPress-centric search engine for devs and theme authors



load_script_translations ›

Since5.0.2
Deprecatedn/a
apply_filters( 'load_script_translations', $translations, $file, $handle, $domain )
Parameters: (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
Defined at:
Codex:

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





Source

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