Home › Forums › Bug Reports › disable via prepare_field › Reply To: disable via prepare_field
One year passed and we still are here… I can’t use $field[‘disabled’] = true; for ‘true/false’-field, because that doesn’t work. It’s a bit strange to have the functional which don’t work with two type of field. Why that is?
“Are you seeing the problem with the stylized UI on or off?” – Yes.
If I make the field[‘ui’] = 0; then will $field[‘disabled’] = true work? Where I need do it? I mean now I work into ‘acf/prepare_field’.
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.