EDIT: I should’ve specified, all this action should happen inside functions.php, not on the front end of the site.
Thanks for your reply but no – its nothing to do with users I just want to get the value of the
name attribute of every field that is an email type field from a certain Field Group.
So I have a Field Group I’ve called ‘Additional Fields for User Profile’ which is – as the name suggests – some extra fields for the User Profile page. Some of these are email fields with their Field Type set to ’email’ – what I want to do is get the value of the
name attribute of every field that has a type of
<input id="acf-field-contact_email" class="email" name="fields[field_52e10709850b3]" value="email@example.com" placeholder="" type="email">
for this field (which has a type of
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.