Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created September 4, 2020 11:58
Show Gist options
  • Select an option

  • Save wpweb101/a92212bc9c73d6add68555afcbb0839b to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/a92212bc9c73d6add68555afcbb0839b to your computer and use it in GitHub Desktop.
<?php
add_filter('woo_vou_gift_notification_data', 'wpw_woo_vou_remove_downloadfile_text',10,1);
function wpw_woo_vou_remove_downloadfile_text($gift_data){
if( isset($gift_data['voucher_link'])){
$gift_data['voucher_link'] = str_replace('Download file', '', $gift_data['voucher_link']); // download file should be the exact that you want to remove
}
return $gift_data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment