wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_load_script_translations › Hooks de Filtros WordPress

Desde5.0.2
Obsoleton/a
apply_filters( 'pre_load_script_translations', null, $file, $handle, $domain )
Parâmetros: (4)
  • (string|false|null) $translations JSON-encoded translation data. Default null.
    Required: Yes
  • (string|false) $file Path to the translation file to load. False if there isn't one.
    Required: Yes
  • (string) $handle Name of the script to register a translation domain to.
    Required: Yes
  • (string) $domain The text domain.
    Required: Yes
Definido em:
Codex:

Pre-filters script translations for the given file, script handle and text domain.

Returning a non-null value allows to override the default logic, effectively short-circuiting the function.





Fonte

$translations = apply_filters( 'pre_load_script_translations', null, $file, $handle, $domain );