I was wondering if querying subfields using an underscore was supported, since I haven’t found anything in the documentation.
For example, if I have a group field called group
with a child
subfield, I can query the subfield using get_field('group_child');
and it works correctly.
I wanted to make sure whether it’s safe to use it like that or it’s not recommended, in case it’s ever removed in an update or something.
Thanks!
Yes, this is a safe way to get this type of field.