Adding filters for changing error messages on bad download link
-
Customer raised an issue that their download link was no longer working:
https://example.com/?download_file=11111&order=wc_order_5aeae2ac2baab&email=email%40example.com&key=1ac8abd4a8faa357cfa71751fabccdd3We looked at the order in question and using inspector over the revoke access, found that the key didn’t match any of the files they had access to. Most likely because the file was replaced at some point.
This sends the user to self::download_error( __( ‘Invalid download link.’, ‘woocommerce’ ) );
in public static function download_product() of woocommerce/includes/class-wc-download-handler.phpIs there any possibility of adding filters to the error messages so we can override them to say something like:
It seems you’ve visited an invalid download link, please check your downloads at https://example.com/my-account/#downloadsThanks,
Ivan
- The topic ‘Adding filters for changing error messages on bad download link’ is closed to new replies.