Using wordpress Easy Digital Downloads https://wordpress.org/plugins/easy-digital-downloads/, is there a function to update all prices for downloads

Using Easy Digital Downloads https://wordpress.org/plugins/easy-digital-downloads/, is there a function to update all prices for downloads

Like for example

add_filter('edd_get_download_price', 'edd_change_price_by_addition', 10, 2);

function edd_change_price_by_addition($price, $download) {

//global post object & post id
 global $post;
 $post_id = $post->ID;
 
 //get the download
$download = edd_get_download($download_id);

// change the price by adding the 35 $price = ($price + 6);

//return the new price
return  $price;

} ?>

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum