1. Home
  2. Paywall
  3. Restricting/gating access to PDF e-editions
  1. Home
  2. WordPress
  3. Restricting/gating access to PDF e-editions

Restricting/gating access to PDF e-editions

This guide utilizes Leaky Paywall shortcodes to restrict access to E-Edition PDFs. This tutorial provides an example of how to restrict DearFlip books based on the Leaky Paywall subscription level. This logic also works for Real3D Flipbooks.

We will breakdown each section of the code below:

Lines 1-5 allows Leaky Paywall subscribers with subscription levels 0, 1, or 3 access to the PDF E-Editions in the eedition category of Dear Flipbooks.

Lines 7-13 displays a message to Leaky Paywall subscribers with level ID 2 an upgrade message. In this case, level ID 2 is a free plan that should not be able to see the PDF.

Lines 15-22 displays a message to sign in or subscribe to a paid plan to access. This will show for logged out users and for anyone that has a deactivated plan in Leaky Paywall.

[leaky_paywall_subscriber levels="0,1,3"]

[dflip books="eedition" limit="5"][/dflip]

[/leaky_paywall_subscriber]

[leaky_paywall_subscriber levels="2"]

You've reached subscriber-only content
You’ll need to upgrade your account to view the E-Edition.
[maxbutton id="3"]

[/leaky_paywall_subscriber]

[leaky_paywall_not_subscriber]

Our E-Edition requires a paid subscription
Already a subscriber? Sign into your account. 

Or, subscribe for unlimited access.

[/leaky_paywall_not_subscriber]

After modifying the level IDs from Leaky Paywall and your DearFlip or Real3D Flipbooks shortcode, paste this code into your E-Edition page in WordPress.

And that’s it!

Updated on January 23, 2026
Was this article helpful?
Get more help
Can't find the answer you're looking for? Get in touch.
Contact support