Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    It depends a bit on what part of the HTML you want to manipulate, some of it comes from ACF and some of it from my plugin. These are the relevant hooks available in my plugin:

    * af/form/field_attributes filter – alter the HTML attributes on the field wrapper.
    * af/field/before_render action – add content before a field is rendered by ACF.

    If you check out the field markup everything inside <div class="af-input acf-input"> is provided by ACF. ??

    Thread Starter Bastian Fie?inger

    (@bastianfiessinger)

    Thanks. I tried both af/form/field_attributes and af/field/before_render but the HTML output are no Array items.

    In my case I wanted to edit the output of a radio button list to set the labels on a different place.

    Plugin Author fabianlindfors

    (@fabianlindfors)

    Sorry about this super late reply!

    In that case it probably an ACF thing as ACF handles the actual radio button rendering. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Possible to manipulate the fields HTML output?’ is closed to new replies.