How to show / hide sections by authority

Thank you as always

In the near future, we will make major updates.
For the checks before that,

Who can display / hide a section depending on the login authority group
Please tell me the law.

If you give a specific id or class to a Section, it branches such that it is hidden for Subscribers and displayed to Administrators.

Actually, since we are using the Memberpress plugin, we were considering a method using short code and php provided in the plugin, but we could not use it on xpro’s edit screen.
Please tell me if there is a way to do it on xpro’s editing screen.

Ex.
[mepr-active membership=“1” ifallowed=“show”]Hide section[/mepr-active]

<?php if(current_user_can('mepr-active','membership:1')): ?>Content to protect<?php endif; ?>

Hi there,

The Cornerstone access and the Hide/Show functionality is only available for the whole Cornerstone itself and not specific sections and elements. You can go to X > Cornerstone menu and there you can set who can access Cornerstone itself.

Unfortunately, there is no such an option for individual Cornerstoen sections or elements. Thank you.

Hello, amirian

Thank you for your prompt response!

That news is very unfortunate, but I understood.

Thanls.

Thank you. And we understand.

@cnyc31 Have you had any big problems using MemberPress with X? Also by any chance are you using Custom Post Types UI or an LMS like LearnDash with X?

Hi there,

If you are interested in having a chat with fellow customers I suggest that you check the Peer to Peer forum. Thank you

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.