On this page
Print: 4. API
Last updated on
30 April 2025
API
print_insert_link(), print_mail_insert_link(), print_pdf_insert_link()
The *_insert_link functions are available to content developers that prefer to place the printer-friendly link in a custom location. It is advisable to disable the regular Printer-friendly link so that it is not shown in both locations.
Calling the function like this:
print_insert_link()
will return the HTML for a link pointing to a Printer-friendly version of the current page.
It is also possible to specify the link to the page yourself:
print_insert_link("print/42")
will return the HTML pointing to the printer-friendly version of node 42.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion