Home › Forums › ACF PRO › Field Key Difference ACF4/5 › Reply To: Field Key Difference ACF4/5
I find that extremely interesting. For example, this is a field I created for a plugin for ACF4
array('key' => '_acf_key_acfop_menu',
'label' => 'Menu Text',
'name' => '_acfop_menu',
'type' => 'text',
'instructions' => 'Will default to title if left blank.',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'none',
'maxlength' => '')
I was thinking to myself… “It would be nice if all those fields didn’t appear in the ‘Custom Fields’ drop down in WP”… so I tried changing them to start with an underscore. When that worked I just started changing the “key” value to whatever I wanted and that worked.
If this is a bug in ACF4 I would ask that it’s a bug you ignore. 😛
~JH
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.