Problem:
The issue here is that the user's access shortcode wasn't working when evaluating the user's role to conditionally display their delete button.
Solution:
In this case the user was evaluating a user role that had a space e.g Super Admin.
When you're evaluating this in our access shortcode you will need to use the slug of the user role which will be super_admin.
Your final shortcode should be.
[toolset_access role="super_admin" operator="allow" raw="true"] My delete post button [/toolset_access]
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 4 replies, has 2 voices.
Last updated by 3 years, 2 months ago.
Assisted by: Shane.