woocommerce_file_download_path

FILTER woocommerce\includes\rest-api\Controllers\Version2\class-wc-rest-products-v2-controller.php (ligne 1453) github
Save downloadable files.

Paramètres

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

Utilisation

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

Actualités

Chargement des actualités...