$value ){
if ( $value == $graphene_meta_defaults[$key] ) unset( $graphene_meta[$key] );
}
if ( $graphene_meta ) update_post_meta( $post_id, '_graphene_meta', $graphene_meta );
else delete_post_meta( $post_id, '_graphene_meta' );
}
add_action( 'save_post', 'graphene_save_custom_meta' );
/**
* Display the custom meta box content
*/
function graphene_custom_meta( $post ){
// Use nonce for verification
wp_nonce_field( 'graphene_save_custom_meta', 'graphene_save_custom_meta' );
/* Get the current settings */
$graphene_meta = get_post_meta( $post->ID, '_graphene_meta', true );
if ( ! $graphene_meta ) $graphene_meta = array();
$graphene_meta = array_merge( graphene_custom_fields_defaults(), $graphene_meta );
?>
post_type): ?>
'',
'show_addthis' => '',
'slider_imgurl' => '',
'slider_url' => '',
'post_date_display' => '',
'nav_description' => '',
);
return $defaults;
}
?>