wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_load_script_translations › Filtr WordPress Hooks

Od5.0.2
Przestarzałyn/a
› apply_filters( 'pre_load_script_translations', null, $file, $handle, $domain )
Parametry: (4)
  • () translations JSON-encoded translation data. Default null.
    Wymagane: Tak
  • () file Path to the translation file to load. False if there isn't one.
    Wymagane: Tak
  • () handle Name of the script to register a translation domain to.
    Wymagane: Tak
  • () domain The text domain.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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