public function save_data_by_post_meta($post_meta, $value, $id)
 {
     $column = $this->post_meta_to_column($post_meta);
     if ($column !== false) {
         // same data should be sanitized and some should retain HTML
         if ($this->allows_html($column)) {
             $value = wp_kses_post($value);
         } else {
             $value = mbdb_sanitize_field($value);
         }
         $success = $this->db_object->save(array($column => $value), $id);
         if ($success === false) {
             return false;
         } else {
             return $success;
         }
     } else {
         return false;
     }
 }
function mbdb_validate_social_media($field)
{
    mbdb_validate_book_fields('_mbdb_social_media_links', '_mbdb_social_mediaID', '_mbdb_social_media_link', __('Social Media Links require all fields filled out. Please check social media link #%s.', 'mooberry-book-manager'));
    return mbdb_sanitize_field($field);
}