Request a quote - How to change pdf filename

You can use the filter 'ywraq_pdf_file_name' to change the pdf filename, put this code in your functions.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, $order_id ){
return 'custom_name_'.$order_id.'.pdf';
}
}

 

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk