[Plugin: Advanced Custom Field]Update the attachment's post_parent of type Image
-
Would like to ask which is the most suitable hooks to do this?
something like:function my_acf_update_value( $value, $post_id, $field ) { wp_update_attachment_metadata( $value, array('post_parent'=>$post_id) ); return $value; } add_filter('acf/update_value/type=image', 'my_acf_load_field', 10, 3);
Thanks for any helps, gratitude!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Advanced Custom Field]Update the attachment's post_parent of type Image’ is closed to new replies.