Filter download method.
get_option( 'woocommerce_file_download_method', 'force'
Sortie :
@param string $method Download method. @param int $product_id Product ID. @param string $file_path URL to file.
// Modifier la valeur avec le filtre 'woocommerce_file_download_method'
add_filter('woocommerce_file_download_method', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(get_option( 'woocommerce_file_download_method') {
// Modifier la valeur
return get_option( 'woocommerce_file_download_method';
}
Chargement des actualités...