
Welcome to the official documentation for Easywpkit Paid Content Access
This guide explains how to lock content behind a payment link and restrict access to specific user roles.
Table of Contents
- Locking Content with a Payment URL
- Restricting Content to User Roles
- Classic Editor & Shortcodes
- Frequently Asked Questions
- Download Easy Content Lock
Locking Content with a Payment URL
Use this method to sell digital content, accept donations, or require a one‑time payment before revealing the content.
1. Create a Payment Link
For Stripe:
- Go to your Stripe Dashboard → Payment Links.
- Click Create payment link and fill in the product details.
- After creation, scroll to the After payment section.
- Enable “Redirect customers to a custom page”, but leave the URL empty for now – you will paste the generated return URL later.
- Click Create link and copy the payment link URL.
For PayPal:
- Create a PayPal payment button or use a PayPal.Me link.
- In the button settings, set the Return URL to your site’s success page (the exact URL will be generated by Easy Content Lock).
2. Configure the Content Lock Block
- Edit the page or post where you want to lock content.
- Add the Easywpkit Paid Content Access block (found under Widgets).
- In the block inspector (right sidebar), set Lock Mode to “Payment Only” or “Both”.
- Enter a unique Block Identifier (e.g.,
product1) — this will be used in the return URL. - Paste your Stripe/PayPal payment link into the Payment URL field.
- Customise the button text and styling as desired.
- Click the “Generate Return URL for Stripe” button. This creates a URL ending with
?ewpkcl_block_id=product1.
3. Set Up the Payment Return Page
- Create a new page named “Payment Success” (or any name).
- Insert the shortcode
[ewpkcl_payment_handler]on that page. Publish it and copy its URL. - Go to Content Lock → Settings and paste the full URL into the Success Page URL field. Save.
4. Finalise the Payment Link
Return to your Stripe/PayPal payment link settings and paste the generated return URL (from step 2) into the Redirect URL field.
Now, when a visitor pays, they will be redirected to your success page, the plugin will verify the payment, unlock the content, and send them back to the original page automatically.
Restricting Content to User Roles
You can show content only to logged‑in users with specific roles (e.g., “Premium Subscriber”). No payment is required.
1. Create a Custom Role (if needed)
WordPress has built‑in roles (Subscriber, Author, etc.), but you may want a special role. We recommend the free plugin User Role Editor.
- Install and activate User Role Editor.
- Go to Users → User Role Editor.
- Click Add Role.
- Enter a name (e.g., “Premium”) and an ID (e.g.,
premium). Click Add Role. - Assign this role to users via Users → All Users → Edit User.
2. Configure the Block
- Add an Easywpkit Paid Content Access block.
- Set Lock Mode to “Roles Only”.
- In the Allowed Roles field, type the role ID you created (e.g.,
premium) and select it from the suggestions. - Optionally, customise the message shown to unauthorised visitors in Roles Only Message.
- Publish the page.
Now only users with that role will see the locked content. Others will see the locked message.
Classic Editor & Shortcodes
If you use the Classic Editor, you can manually insert the lock shortcode:
text
[ewpkcl_lock payment_url="https://..." button_text="Buy Now"] Your secret content [/ewpkcl_lock]
The [ewpkcl_payment_handler] shortcode must be placed on the success page for payment returns.
Frequently Asked Questions
Can I use multiple locked blocks on the same page?
Yes, each block can have its own payment URL and price. A visitor will only see the content of the block they paid for.
How do I generate the return URL for Stripe?
In the block inspector, after entering the Block Identifier, click the “Generate Return URL for Stripe” button. Copy the generated URL and paste it into your Stripe Payment Link’s redirect field.
Do I need a separate success page for each block?
No, a single success page with the [ewpkcl_payment_handler] shortcode handles all blocks. The plugin identifies the block by the ewpkcl_block_id parameter in the URL.
Can I combine payment and role‑based access?
Yes, set the Lock Mode to “Both”. Then, if a user has the required role, they see the content immediately; otherwise, they must pay.
Does the plugin support WP Simple Pay or WooCommerce?
Currently only direct URLs (Stripe Payment Links, PayPal.Me, etc.) are supported. Native integrations may be added in a future version.
How long does access last after payment?
For guests, access is stored in a browser cookie for 30 days. For logged‑in users, access is permanent and linked to their user account.
I see the message “Missing block identifier.” What does it mean?
You need to enter a unique identifier in the Block Identifier field of the EasyWpKit Content Lock block. This is required for payment mode blocks.
How can I get support?
For any questions or issues, email us at admin@easywpkit.com. We’ll be happy to help.
Download Easy Content Lock
You can download the free Easywpkit Paid Content Access plugin directly from your WordPress dashboard by searching for “Easy Content Lock” in Plugins → Add New.
Alternatively, download the latest .zip file here:
Easywpkit Paid Content Access
© 2026 EasyWPKit. Easywpkit Paid Content Access is a trademark of EasyWPKit.
