Easy Digital Downloads - Hide product notes from appearing on the purchase confirmation page and email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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