Created
September 4, 2020 11:58
-
-
Save wpweb101/a92212bc9c73d6add68555afcbb0839b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| 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