Add paramter to the download URL

June 24, 2021 20: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?
June 25, 2021 06:58:15
E2Pdf
Topics: 7
Messages: 3614
Support
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!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.