woocommerce_download_parse_file_path

FILTER woocommerce\includes\class-wc-download-handler.php (ligne 337) github
Filter the filepath for download.

Paramètres

Entrée :
$file_path, $remote_file
Sortie :
@param string  $file_path File path.
@param bool $remote_file Remote File Indicator.

Utilisation

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

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

Actualités

Chargement des actualités...