Weighted download count

function all_access_weighted_downloads( $all_access_pass, $download, $requested_file, $email, $log_id ) { // Get the download ID we will deliver $download_to_deliver = is_numeric( $_GET[‘edd-all-access-download’] ) ? $_GET[‘edd-all-access-download’] : NULL; $price_id_to_deliver = isset( $_GET[‘edd-all-access-price-id’] ) && is_numeric( $_GET[‘edd-all-access-price-id’] ) ? $_GET[‘edd-all-access-price-id’] : false; $file_id_to_deliver…Continue reading

Expire pass when counter used up

function all_access_expire_pass_when_counter_used_up( $all_access_pass, $download, $requested_file, $email, $log_id ) { // Get the download ID we will deliver $download_to_deliver = is_numeric( $_GET[‘edd-all-access-download’] ) ? $_GET[‘edd-all-access-download’] : NULL; $price_id_to_deliver = isset( $_GET[‘edd-all-access-price-id’] ) && is_numeric( $_GET[‘edd-all-access-price-id’] ) ? $_GET[‘edd-all-access-price-id’] : false; $file_id_to_deliver…Continue reading

Hide file-specific download options

function my_custom_function_to_hide_file_specific_options( $hide_file_specific_options, $download_id ) { return true; } add_filter( ‘edd_all_access_download_form_hide_file_specific_download_options’, ‘my_custom_function_to_hide_file_specific_options’, 10, 2 );Continue reading

Only count last file

function all_access_only_count_last_file( $should_be_counted, $all_access_pass, $download_id, $requested_file, $email, $log ) { // This is the id of the file being downloaded using All Access $requested_file_id = isset( $_GET[‘edd-all-access-file-id’] ) ? $_GET[‘edd-all-access-file-id’] : 0; // Get the array of files attached to…Continue reading