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 via the ?wbmw_action=print URL parameter on the wiki dashboard, passing the page ID:
?wbmw_action=print&wbmw_page_id=123The plugin also provides a helper function for generating print URLs:
$print_url = wbmw_get_print_url( $page_id );This URL is typically linked from the single wiki page’s action bar via 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.

