Home › Forums › Backend Issues (wp-admin) › adding-custom-settings-fields › Reply To: adding-custom-settings-fields
I’m sure you weren’t, that was just me saying that if you’re having a problem with one of my plugins that I’d really like to hear about it. Eventually, if ACF5 ever makes it to the WP repo I will be putting a lot of my plugins there.
In the mean time, if you want to accomplish this type of admin only field for only a specific field, that plugin show how it needs to be done in the current version and there is code now for when 5.5 is released. In the current version you need to use a hook named ‘acf/get_fields’. This hook is not documented. this hook passes an array of fields and you need to loop though the fields and remove the ones you don’t want to display.
The way that the acf/prepare_field filter is supposed to work makes the process a whole lot simpler.
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βre excited to announce we've released Composer support for installing ACF PRO.
— Advanced Custom Fields (@wp_acf) January 31, 2023
π #ComposerPHP fans rejoice!
β¨ Please see the release post for all the details and full instructions. https://t.co/ebEfp61nlR
© 2023 Advanced Custom Fields.
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.