Add paramter to the download URL

24 June, 2021 13:36:21
Grantf
Topics: 1
Messages: 1
Hi I wish to append a &var=xyz get parameter to the URL generated by e2pdf, eg: [e2pdf-download id="2" title="Download PDF" inline="true"] generates a dynamic hyperlink on my page which works great. How do I add an additional parameter to the generated hyperlink please?
24 June, 2021 23:58:15
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Unfortunately E2Pdf 1.16.02 hasn't such possibility to add additional parameters to URL but we currently released RC Version 1.16.06 where it's possible to add additional parameters via custom "hook". You can update to RC Version by following steps in current topic: https://e2pdf.com/support/desk/how-to-update-plugin-to-rc-release-candidate-version-from-e2pdf-com.

After applying update you must be able to add "filter" to functions.php or PHP snippet as follows: https://codeshare.io/kmmmmA

However if you want just to add some static value to PDF you can use "arg1, arg2, arg3" attributes as follows:

[e2pdf-download id="2" title="Download PDF" inline="true" arg1="Custom Value 1" arg2="Custom Value 2"]
To output values inside E2Pdf Template: [e2pdf-arg key="arg1"], [e2pdf-arg key="arg2"], etc...

We remain at your service.
We would really appreciate your feedback at WordPress.org!