Skip to content

Instantly share code, notes, and snippets.

@kreamweb
Last active August 3, 2016 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kreamweb/5d7b8f8e35e1ee8162e5dd9998380acd to your computer and use it in GitHub Desktop.
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
<?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