Closed Dinamiko closed 7 years ago
Allows changing PDF file name from the outside:
function custom_dkpdf_pdf_filename( $filename ) { $current_user = wp_get_current_user(); $filename = $current_user->display_name.' '.get_the_title(); return $filename; } add_filter( 'dkpdf_pdf_filename', 'custom_dkpdf_pdf_filename' );
Allows changing PDF file name from the outside: