How to customize PDF file name
-
\estatik\classes\class-property-pdf.php (PRO v. 3.11.14)
line:90
$this->_tcpdf->stream( 'property'.pdf', array( 'Attachment' => 0 ) );
Have changed to:
$this->_tcpdf->stream( 'broker-name--property-id-'.get_the_ID().'.pdf', array( 'Attachment' => 0 ) );
Instead
property.pdf
i can downloadbroker-name--property-id-1234.pdf
How to apply this modification safely in my functions.php?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to customize PDF file name’ is closed to new replies.