wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_load_script_translations › WordPress Filter Hooks

Da5.0.2
Deprecaton/a
› apply_filters( 'pre_load_script_translations', null, $file, $handle, $domain )
Parametri: (4)
  • () translations JSON-encoded translation data. Default null.
    Richiesto: Sì
  • () file Path to the translation file to load. False if there isn't one.
    Richiesto: Sì
  • () handle Name of the script to register a translation domain to.
    Richiesto: Sì
  • () domain The text domain.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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