Home › Forums › ACF PRO › Display/Hide tabs (and their child fields) by user role? › Reply To: Display/Hide tabs (and their child fields) by user role?
Unfortunately no there’s currently no option to show or hide specific fields or tabs depending on the users role.
You’d have to do an AJAX call when a page loads to first fetch the role of the current user. Then in JS you can just hide the fields you don’t want them to see depending on the returned role.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.