woocommerce_file_download_method

FILTER woocommerce\includes\class-wc-download-handler.php (ligne 248) github
Filter download method.

Paramètres

Entrée :
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.

Utilisation

// 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';
}

Actualités

Chargement des actualités...