View difference between Paste ID: SzNknJFE and 32qvEcaG
SHOW: | | - or go back to the newest paste.
1
add_action('save_post', 'save_details');
2
function save_details(){
3
  global $post;
4
  
5
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
6
return $post_id;
7
} else {
8
  
9
  // Custom Page  
10
  update_post_meta($post->ID, "featured_title", $_POST["featured_title"]);
11
  update_post_meta($post->ID, "featured_img", $_POST["featured_img"]);
12
  
13
}
14
}