1

When updating a gallery with a new image or deleting an image, is there a hook which gets called?

With a standard image field there's add_filter('acf/update_value/type=image', 'my_acf_update_value', 10, 3);

1 Answer 1

2

You can use the same filter, just replace the type:

add_filter('acf/update_value/type=gallery', 'my_acf_update_value', 10, 3);

All fields extend the same base class, so they also share the same basic filters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.