Support

Account

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.