Last active
August 17, 2022 10:47
-
-
Save cartimize/502322d1f00a4be5b7598435d67dd1ac to your computer and use it in GitHub Desktop.
Change download pdf name
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 | |
add_filter( 'cartimize_pro_download_file_name', 'custom_cartimize_pro_download_file_name', 10, 2 ); | |
function custom_cartimize_pro_download_file_name($name, $order) { | |
return 'Order-confirmation-'.$order->get_order_number().'.pdf'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment