Home › Forums › Front-end Issues › File filed skip media library › Reply To: File filed skip media library
Thank you very much John. This pointed me in the right direction.
For anyone wondering, I ended up adding a meta field to the newly created attachment from the upload using update_post_meta after form submission.
And then pre-filtered the posts query on the upload.php and admin-ajax.php (both media library access points) for attachments without the meta field using pre_get_posts().
Thank you! 🙂
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.