I currently translate all fields in all groups, however there are cases when I wouldn’t want to translate fields ( page settings, email addresses …) so I am working on the option to exclude specific acf groups from translation.
The function hooked to acf/load_value retrieves 3 variables ( $value, $post_id, $field )
I’m specifically interested in the $field->parent as it should contain the acf group
Unfortunately, what I’m experiencing is, that for some fields $field->parent is 0.
Reasons I can exclude so far:
– Only Options Page fields don’t carry the parent (is not the case)
– Depends on the hook where the fields get added ( all on the acf/init hook)
If you have any ideas what else could be the reason, please let me know.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users