load_script_textdomain_relative_path

FILTER wp-includes\l10n.php (ligne 1252) github
Filters the relative path of scripts used for finding translation files.

Paramètres

Entrée :
$relative, $src
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.

Utilisation

// Modifier la valeur avec le filtre 'load_script_textdomain_relative_path'
add_filter('load_script_textdomain_relative_path', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($relative) {
    // Modifier la valeur
    return $relative;
}

Actualités

Chargement des actualités...