Home › Forums › Feature Requests › Uploaded Files Location › Reply To: Uploaded Files Location
I would use the field key variant, not the field name. When ACF runs hooks for sub fields the field name for the filter is generally the concatenated version of the field name "{$parent}_{$child}"
but not always.
In some cases even using the field key variant is not sufficient. In some cases I have had to use either to field type variant or even the all fields variant acf/upload_prefilter
and then look at the values in the $field array and figure out a way to match to the field I want to filter.
Anyway, I usually try the field key variant first and if that does not seem to work then I use one of the others and start trying to dissect what is being passed in $field in order to make it work.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.