Home › Forums › Add-ons › Flexible Content Field › Using acf/update_value in Flexible Content Field › Reply To: Using acf/update_value in Flexible Content Field
I’m lost on finding they key here. I’ve turned on field visibility on the “edit field group” page and my flexible content field, at the top level is “field_6018cb496afa3”. Then the layouts themselves don’t display a field key for the layout, but within the layout, there are keys for each row. In my example, the video ID field is “field_602f31fa1de20”.
If I setup a filter with
add_filter('acf/update_value/key=field_6018cb496afa3', 'my_function_name', 20, 4); or
add_filter('acf/update_value/key= field_602f31fa1de20', 'my_function_name', 20, 4); and in my function I just var_dump everything, I get no output, suggesting that my filter is not firing because I’m not looking for the right field… Where am I going wrong here?
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!
❓Ever wondered when and why ACF uses JSON instead of the database? Check out our summary of the most recent session of ACF Chat Friday for the answer, and make sure to register for the next session.— Advanced Custom Fields (@wp_acf) February 23, 2023
© 2023 Advanced Custom Fields.