Home › Forums › General Issues › Register color picker via PHP › Reply To: Register color picker via PHP
Hello James,
I want to register custom fields using the acf_add_local_field_group()-function. When I want to add a new field, I go to the Register fields via PHP page and view the documentation on the settings for the field that I want. However, for some fields there is no documentation. I believe the newly added custom fields, such as the color picker, are missing from this page.
Example use case (current situation):
I can see that the color picker has a default value, but I have no idea which settings key to use. So now I have to create a new color picker field in the GUI, publish it, export it to PHP en see in the resulting code which settings key is used for the default color value.
I would love it if this and other newly added custom fields were documented in the above mentioned page.
Kind regards,
Tim Havinga
Web developer at Vevida
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.