Home Forums ACF PRO Hook into Gallery Field


Hook into Gallery Field

  • I have a situation where I need to modify the Gallery Field to only show attachments added by the user. I’ve been able to do this using ajax_query_attachments_args hook for whenever the media module is open but I’m not sure what hook to use whenever the gallery initially loads.

    Whenever the gallery initially loads it will show any images uploaded to the post whether or not it’s been added by the user. I’m trying to only query the images where the current user is the author.

Viewing 1 post (of 1 total)

The topic ‘Hook into Gallery Field’ is closed to new replies.