save image to custom meta box

Solutions on MaxInterview for save image to custom meta box by the best coders in the world

showing results for - "save image to custom meta box"
Paula
01 Feb 2019
1function save_joe_details($post_id){
2  global $post;
3  if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
4  return $post_id;
5  update_post_meta($post->ID, "custom_field_image", $_POST["custom_field_image"] );
6}
7add_action('save_post', 'save_joe_details');
8