Last active
August 3, 2016 05:01
-
-
Save kreamweb/5d7b8f8e35e1ee8162e5dd9998380acd to your computer and use it in GitHub Desktop.
change the name 'quote_xx.pdf' in yith woocommerce request a quote premium
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 | |
if( function_exists('YITH_Request_Quote_Premium') ){ | |
add_filter('ywraq_pdf_file_name','ywraq_pdf_file_name', 10, 2); | |
function ywraq_pdf_file_name( $filename, $quote_id ){ | |
return 'custom_name_'.$quote_id.'.pdf'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment