ID, 'pd_nb_metastatus', true); echo ' '; } function nb_save_postdata( $post_id ) { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; if ( !wp_verify_nonce( $_POST['pd_nb_metanonce'], plugin_basename( __FILE__ ) ) ) return; if ( 'page' == $_POST['post_type'] ) { if ( !current_user_can( 'edit_page', $post_id ) ) return; } else { if ( !current_user_can( 'edit_post', $post_id ) ) return; } $data = $_POST['pd_nb_metastatus']; update_post_meta($post_id,'pd_nb_metastatus',$data); } ?>