Programatically show a locker?

Posted in: Newspaper
Post count: 26

Hello, I have implemented a custom post type and I would like to programmatically check if the user has a subscription if not show a specific locker.

How can I do this? Can you point me to some documentation?

Thanks,
Lorand

Post count: 26

Or how can I enable the locker settings on a custom post type?

Post count: 26

I think I found it in another post: https://imgur.com/yaaGn9p

Post count: 26

actually after enabled that setting and setting the locker for a post from that custom post type the locker is not showing (it is not locking the content). Is there anything else I need to set?

Post count: 27744

Hello,

Please let me know what plugin you use for the cache.
Also, please provide screenshots or a video of your steps.
A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here

Thank you!

Post count: 26

After more investigation, I figured out that the check of the locker is triggered somewhere in the_content() part, but on my custom post type I don’t want to use the_content() as I want to render my own logic of the page by using a page template so I’m overriding the post type template page with single-{post_type}.php where I add my own logic of displaying and because I don’t use “the_content()” the locker check is not triggered.

Is there a way I can do this check manually or point me where on how that check is made?

Post count: 27744

Hi,

So, do you want to set a locker on a page, not on a post or custom post type? You can set a plan to block access to the page by setting a plan on the rows -> https://i.imgur.com/L1bOV3U.jpeg

Thank you!

Post count: 26

I will send a recoding to contact@tagdiv.com as the recording might contain sensitive information.

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.