Home Forums Backend Issues (wp-admin) Is it save to use _name or _value keys in `acf/prepare_field`?


Is it save to use _name or _value keys in `acf/prepare_field`?

  • Actually the title says it all: Is it ok to use those keys in the $field array of ACF filters, or is there an api method that I should use instead? I always thought keys with underscores are not meant to be used directly…

  • You’d have to try it. If you mean alter them? more than likely altering some of these will break the field, but I don’t know what they are used for. They probably have some special meaning to ACF. Like I said, you’d need to dig through ACF code to figure out what they are used for and attempt to change them to see what happened, but my guess it that most of them should not be changed.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Is it save to use _name or _value keys in `acf/prepare_field`?’ is closed to new replies.