Home › Forums › Backend Issues (wp-admin) › Can't get upload_prefilter to work? › Reply To: Can't get upload_prefilter to work?
Hi @cc
That’s weird. I’ve just tested that code and it was working great on my end. It’s possible that there’s a conflict on your site. Could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Sixteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.
I’m sorry I didn’t notice that you use the free version. I’m afraid the “acf/upload_prefilter” is only available in the PRO version. In this case, you need to use the wp_handle_upload_prefilter, but you need to use extra logic to determine if the images are posted from a ACF or not.
Thanks 🙂
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.