Support

Account

Home Forums Backend Issues (wp-admin) Conditionally registering field on acf/update_value Reply To: Conditionally registering field on acf/update_value

  • You cannot do this on that hook. In order for a field to be registered it must be run on every page load, in other words the init (or acf/init) hook.

    It would also be very difficult to do this on the init hook.

    Your best option would be to use an acf/prepare_field filter for this field and not display it if a check, or only display it, based on a check of the other field value https://www.advancedcustomfields.com/resources/acf-prepare_field/