Skip to content

Instantly share code, notes, and snippets.

@amdrew
Last active August 29, 2015 14:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amdrew/a2da5a4c5f02f525d0e3 to your computer and use it in GitHub Desktop.
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