Create a gist now

Instantly share code, notes, and snippets.

Easy Digital Downloads - Hide product notes from appearing on the purchase confirmation page and email
<?php
/**
* Remove product notes for specific downloads
*/
function sumobi_edd_remove_product_notes( $notes, $download_id ) {
// enter the download IDs you'd like to exclude into this array
$downloads_to_exclude = array( 509, 104, 435 );
if ( in_array( $download_id, $downloads_to_exclude ) ) {
return false;
}
return $notes;
}
add_filter( 'edd_product_notes', 'sumobi_edd_remove_product_notes', 10, 2 );
<?php
/**
* Remove product notes for all downloads
*/
add_filter( 'edd_product_notes', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment