Black Friday 40% off yearly and lifetime plans · 18d left Ends in 18d09h23m Claim 40% off
Security38 docs

How to Disable Print in WordPress

Disable the CTRL+P keyboard shortcut to print the page in Classic Monks. Prevents users from easily printing the page to paper or PDF.

By Founder & Lead Developer

Last updated

2 minutes

Key takeaways

  • Single toggle, no nested options
  • Disables printing the page via the keyboard shortcut via JavaScript
  • Use the “Apply to Administrators” sub-option to allow admins to still printing the page via the keyboard shortcut
  • Soft deterrent only, not a security feature
  • Easily bypassed by browser dev tools

What Is the Disable Print feature?

The printing the page via the keyboard shortcut behavior is a common browser feature. The Disable Print feature disables it on your WordPress site, preventing users from using the keyboard shortcut to print the page.

This is a soft deterrent, not a security feature. Determined users can still print the page via the browser’s developer tools or by disabling JavaScript.

Why You Need It

For some types of sites, preventing casual printing the page is useful:

  • Premium content sites: Where the content itself is the product
  • Image-heavy sites: Where images are the unique value
  • Course sites: Where the lessons are paid
  • Recipe sites: Where recipes are the unique value

For most sites, this is unnecessary. The content is already protected by copyright.

Trade-offs vs allowing printing the page

Disabling printing the page has trade-offs:

  • Accessibility: Users with disabilities who rely on printing the page are affected
  • User experience: Sharing and quoting become harder
  • Real protection: Doesn’t actually protect the content (anyone with dev tools can print the page)

For most sites, the trade-offs are not worth it.

How to Disable Print in WordPress

  1. Step 1

    Navigate to Settings

    Click into the Classic Monks plugin settings in your WordPress dashboard.

  2. Step 2

    Go to the Security Tab

    Click on the Security menu, then click the Content Protection subtab.

  3. Step 3

    Enable the Feature

    Scroll to Disable Print and toggle on.

    Disable print content protection option

  4. Step 4

    Save Changes

    Click Save Changes.

  5. Step 5

    Test

    Visit the frontend. Try to print the page. The print shortcut should not printing the page via the keyboard shortcut.

Configuration Options

Option Description Default
Disable Print Master toggle. Off
Apply to Administrators Admins can still print the page. On

What Gets Affected

  • The frontend: printing the page via the keyboard shortcut via JavaScript is disabled
  • The admins: can still print the page (if “Apply to Administrators” is on)
  • The accessibility: may affect users who rely on printing the page

What Does NOT Get Affected

  • The admin: admins can still print the page
  • The browser’s developer tools: still allow bypassing
  • The keyboard shortcuts (other than the disabled one): still work
  • The screen readers: usually not affected

Advanced Options (Developers)

This feature registers 1 WordPress hook in disable-print.php:

Actions:

  • wp_head calls cm_disable_print_script() (Injects print disable script and CSS)
// Hooked in disable-print.php
add_action( 'wp_head', 'cm_disable_print_script' );

The feature modifies WordPress behavior by registering or removing hooks. Disabling it reverses those changes and WordPress returns to its default behavior.

Troubleshooting

4 problems and how to fix each one.

The print shortcut still opens

Cause: The toggle is off, or the JavaScript is not running.
Fix: Verify the toggle is on. Check the browser console for errors.

The admins can’t print the page

Cause: The “Apply to Administrators” option is off.
Fix: Enable the “Apply to Administrators” sub-option.

The print shortcut works in some browsers

Cause: Different browsers may handle the event differently.
Fix: Test in multiple browsers. The feature uses standard browser events, so it should work consistently, but some browsers may have edge cases.

Users are still using the keyboard shortcut to print the page via dev tools

Cause: This is a soft deterrent only.
Fix: The Disable Print feature only prevents casual printing the page. For real content protection, use copyright, watermarks (for images), or licensing terms.

Was this doc helpful?

Your answer tells us which docs to fix first.

Still stuck? Ask on the forum or email help@classicmonks.com.
Joy Chetry
Written by the person who built it

Joy Chetry

Founder & Lead Developer, Classic Monks

Joy is the founder of Classic Monks and GoodMonks Solutions, a web development agency that builds WordPress and WooCommerce sites for clients. Classic Monks grew out of the agency's own need to consolidate 20 to 30 separate plugins into one core stack.

Follow this doc on a real site.

Open a private WordPress site with Classic Monks, WooCommerce and Bricks Builder installed, and follow this doc step by step. Free for 24 hours, no card.

280 docs, written by Joy Chetry 15 day refund window