Home › Forums › Backend Issues (wp-admin) › Can't get upload_prefilter to work? › Reply To: Can't get upload_prefilter to work?
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.
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!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.