Home › Forums › ACF PRO › How to disable field editing in specific environment (live/staging)? › Reply To: How to disable field editing in specific environment (live/staging)?
Hi,
If i’m right, you just want to avoid user with back-end access to make change on ACF. I don’t know if you can disabled field editing on specific environnement (live and staging) but you can simply change the capability needed to access ACF editing with the ‘acf/settings/capability’ filter.
I made the same for my website :
1) Create a specific capability named ‘edit_acf’
2) Set this specific capability as access rule for ACF with ‘acf/settings/capability’ filter
3) Add the specific capability only to role/user you want
This will not make your “staging ACF json” as “source of truth” but you’ll be sure that’s user can make change.
Hope it’s solve your issue
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.