acf-hidden icon indicating copy to clipboard operation
acf-hidden copied to clipboard

How does it work?

Open YiorgosTheo opened this issue 10 years ago • 1 comments

Hi, I downloaded this plugin and it does allow to create a hidden field but it doesn't hold any default values that would be saved along with the visible fields. How is it supposed to be used?

Regards,

Yiorgos

YiorgosTheo avatar Jul 10 '14 23:07 YiorgosTheo

Yiorgos,

The plugin does very little on its own. I usually use it in combination with other plugins or custom functionality that need a hidden field.

You can create a default value field if you'd like. There is some commented out code that will point you in the right direction doing so. In acf-hidden-v4.php, check out the create_options and create_field functions. In acf-hidden-v4.php, take a look at the render_field_settings and render_field functions.

Hope this helps.

  • Eric K

erickertz avatar Jul 11 '14 15:07 erickertz