Home › Forums › Backend Issues (wp-admin) › Set image as featured image › Reply To: Set image as featured image
I just noticed your filter
add_filter('acf/update_value/key=1_bild', 'acf_set_featured_image', 10, 3);
1_bild is not a valid field key, that is the field name, so your filter is probably never run. It should probably be
add_filter('acf/update_value/name=1_bild', 'acf_set_featured_image', 10, 3);
Also, not sure if this will effect anything or not but it’s generally not a good idea to use a field name that begins with a number. This all depends on what you plan to do with the name though so in most cases it won’t matter.
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.