wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_load_script_translations › WordPress Filter Hooks

Seit5.0.2
Veraltetn/v
apply_filters( 'pre_load_script_translations', null, $file, $handle, $domain )
Parameter: (4)
  • (string|false|null) $translations JSON-encoded translation data. Default null.
    Erforderlich: Ja
  • (string|false) $file Path to the translation file to load. False if there isn't one.
    Erforderlich: Ja
  • (string) $handle Name of the script to register a translation domain to.
    Erforderlich: Ja
  • (string) $domain The text domain.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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