Print View
The Print View renders a clean, print-optimized version of a wiki page, stripping away navigation, sidebars, and plugin UI. It opens in a new browser window and automatically triggers the browser’s print dialog.
What the Print View Renders
Section titled “What the Print View Renders”The print view generates a standalone HTML document (not inside your theme’s template hierarchy) containing:
- The page title as an
<h1> - A retrieval note showing the date the page was accessed and the site name (e.g., “Retrieved March 12, 2026 from My Site”)
- The full page content processed through WordPress’s
the_contentfilter - meaning wiki links are resolved, the TOC is rendered, and any other content filters apply - A footer with the page’s canonical URL and last-modified date
Print Styles
Section titled “Print Styles”The print view includes inline styles optimized for reading on paper:
- Georgia serif font, 14px, max-width 800px
H1with a bottom border,H2with a lighter border- Images constrained to
max-width: 100% - A
@media printrule that removes any.no-printelements and resets margins
Accessing the Print View
Section titled “Accessing the Print View”The print view is triggered by adding the ?wbmw_print=1 query parameter to a single wiki page’s own permalink:
https://yourdomain.com/wiki/quantum-computing/?wbmw_print=1Every single wiki page already includes a Print button in its action bar (it opens the print view in a new tab). The plugin builds that link internally with add_query_arg( 'wbmw_print', '1', get_permalink( $page_id ) ).
The print action is part of the default page actions (the print key), so you can move, restyle, or remove it with the wbmw_page_actions filter (see Hooks & Filters).
Template Override
Section titled “Template Override”The print view is rendered by wiki-print.php. Override it in your theme at:
wp-content/themes/{your-theme}/wb-member-wiki/wiki-print.phpThe template receives $page_id (int) - the ID of the page being printed.
Note: Because the print view outputs a complete <!DOCTYPE html> document, it bypasses WordPress’s standard template loading. Your theme header, footer, and sidebars are not included. Keep this in mind when overriding the template.
Developer Notes
Section titled “Developer Notes”The print view applies apply_filters( 'the_content', $wiki_page->post_content ) so all content processing (wiki link parsing, TOC generation, shortcodes) runs on the printed output exactly as it does on the live page view.
To add content to the print view programmatically, override the template rather than using template hooks, since no wbmw_ hooks are defined inside the print template.

