Home › Toolset Professional Support › [Resolved] I want to hide one custom field in admin panel from my Content Manager
Problem:
The issue here is that the user wanted to hide a specific custom field from a user on a post page.
Solution:
It is not possible to hide a single post field from a user, this would need to be done using css by checking the user's role with php code and applying the css based on user role.
https://css-tricks.com/snippets/wordpress/apply-custom-css-to-admin-area/
So you need to check the users role then apply the css.
https://wordpress.stackexchange.com/questions/5047/how-to-check-if-a-user-is-in-a-specific-role
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)
Tagged: Access plugin, Custom roles
Related documentation:
This topic contains 2 replies, has 2 voices.
Last updated by Serhii 5 years, 11 months ago.
Assisted by: Shane.
Hi, I have created a new role Poster using Toolset Access (User from this role adding new reviews casino on my site).
I have set all needs permissions except one, I need to hide one custom field (hidden link) from users who have role 'Poster' and adding new content.
But I do not understand how. The tap "Types Fields" does not give me such an opportunity. I can just two variants: show all custom fields for Poster role or hide all custom fields from Poster role.
Please help me with my problem.
Hi Serhii,
Thank you for contacting our support forum.
It is not possible to hide a single post field from a user, this would need to be done using css by checking the user's role with php code and applying the css based on user role.
hidden link
So you need to check the users role then apply the css.
https://wordpress.stackexchange.com/questions/5047/how-to-check-if-a-user-is-in-a-specific-role
Please let me know if this helps.
Thanks,
Shane
Unfortunately, Toolset doesn't have needed settings by default. In my opinion, they should be.