wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_load_script_translations › Les Filtres WordPress

Depuis5.0.2
Dépréciéen/a
apply_filters( 'pre_load_script_translations', null, $file, $handle, $domain )
Paramètres: (4)
  • (string|false|null) $translations JSON-encoded translation data. Default null.
    Requis: Oui
  • (string|false) $file Path to the translation file to load. False if there isn't one.
    Requis: Oui
  • (string) $handle Name of the script to register a translation domain to.
    Requis: Oui
  • (string) $domain The text domain.
    Requis: Oui
Défini(e) dans:
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.





Source

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