woocommerce_product_file_download_path

FILTER woocommerce\includes\abstracts\abstract-wc-product.php (ligne 2231) github
Get file download path identified by $download_id.

Paramètres

Entrée :
$file_path, $this, $download_id
Sortie :
@param  string $download_id file identifier.
@return string

Utilisation

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

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

Actualités

Chargement des actualités...