load_script_translations

FUNCTION wp-includes\l10n.php (ligne 1146) github

Pas de documentation disponible

Paramètres

Entrée :
$file, $handle, $domain
Sortie :
@param string|false $relative The relative path of the script. False if it could not be determined.
@param string       $src      The full source URL of the script.
@param string|false $file   Path to the translation file to load. False if there isn't one.
@param string       $handle Name of the script to register a translation domain to.
@param string       $domain The text domain.
@return string|false The JSON-encoded translated strings for the given script handle and text domain.

Utilisation

// Utilisation de la fonction load_script_translations
$result = load_script_translations($file, $handle, $domain);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...