Save downloadable files.
$file['file'], $product, $key
Sortie :
@param WC_Product $product Product instance. @param array $downloads Downloads data. @param int $deprecated Deprecated since 3.0. @return WC_Product
// Modifier la valeur avec le filtre 'woocommerce_file_download_path'
add_filter('woocommerce_file_download_path', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($file['file']) {
// Modifier la valeur
return $file['file'];
}
Chargement des actualités...