|  | @@ 964-974 (lines=11) @@ | 
                                                            
                                    | 961 |  | 	/** | 
                                                            
                                    | 962 |  | 	 * Set the spoken_languages | 
                                                            
                                    | 963 |  | 	 */ | 
                                                            
                                    | 964 |  | 	public function set_spoken_languages($data,$id) { | 
                                                            
                                    | 965 |  | 		if(!empty($data[0]['features']) && isset($data[0]['features']['spoken_languages']) && !empty($data[0]['features']['spoken_languages'])){ | 
                                                            
                                    | 966 |  | 			$languages = false; | 
                                                            
                                    | 967 |  | 			foreach($data[0]['features']['spoken_languages'] as $spoken_language){ | 
                                                            
                                    | 968 |  | 				$languages[] = sanitize_title($spoken_language); | 
                                                            
                                    | 969 |  | 			} | 
                                                            
                                    | 970 |  | 			if(false !== $languages){ | 
                                                            
                                    | 971 |  | 				$this->save_custom_field($languages,'spoken_languages',$id); | 
                                                            
                                    | 972 |  | 			} | 
                                                            
                                    | 973 |  | 		} | 
                                                            
                                    | 974 |  | 	} | 
                                                            
                                    | 975 |  |  | 
                                                            
                                    | 976 |  | 	/** | 
                                                            
                                    | 977 |  | 	 * Set the friendly | 
                                                                                
                                |  | @@ 979-989 (lines=11) @@ | 
                                                            
                                    | 976 |  | 	/** | 
                                                            
                                    | 977 |  | 	 * Set the friendly | 
                                                            
                                    | 978 |  | 	 */ | 
                                                            
                                    | 979 |  | 	public function set_friendly($data,$id) { | 
                                                            
                                    | 980 |  | 		if(!empty($data[0]['features']) && isset($data[0]['features']['suggested_visitor_types']) && !empty($data[0]['features']['suggested_visitor_types'])){ | 
                                                            
                                    | 981 |  | 			$friendly_options = false; | 
                                                            
                                    | 982 |  | 			foreach($data[0]['features']['suggested_visitor_types'] as $visitor_type){ | 
                                                            
                                    | 983 |  | 				$friendly_options[] = sanitize_title($visitor_type); | 
                                                            
                                    | 984 |  | 			} | 
                                                            
                                    | 985 |  | 			if(false !== $friendly_options){ | 
                                                            
                                    | 986 |  | 				$this->save_custom_field($friendly_options,'suggested_visitor_types',$id); | 
                                                            
                                    | 987 |  | 			} | 
                                                            
                                    | 988 |  | 		}		 | 
                                                            
                                    | 989 |  | 	} | 
                                                            
                                    | 990 |  |  | 
                                                            
                                    | 991 |  | 	/** | 
                                                            
                                    | 992 |  | 	 * Set the special interests | 
                                                                                
                                |  | @@ 994-1004 (lines=11) @@ | 
                                                            
                                    | 991 |  | 	/** | 
                                                            
                                    | 992 |  | 	 * Set the special interests | 
                                                            
                                    | 993 |  | 	 */ | 
                                                            
                                    | 994 |  | 	public function set_special_interests($data,$id) { | 
                                                            
                                    | 995 |  | 		if(!empty($data[0]['features']) && isset($data[0]['features']['special_interests']) && !empty($data[0]['features']['special_interests'])){ | 
                                                            
                                    | 996 |  | 			$interests = false; | 
                                                            
                                    | 997 |  | 			foreach($data[0]['features']['special_interests'] as $special_interest){ | 
                                                            
                                    | 998 |  | 				$interests[] = sanitize_title($special_interest); | 
                                                            
                                    | 999 |  | 			} | 
                                                            
                                    | 1000 |  | 			if(false !== $interests){ | 
                                                            
                                    | 1001 |  | 				$this->save_custom_field($interests,'special_interests',$id); | 
                                                            
                                    | 1002 |  | 			} | 
                                                            
                                    | 1003 |  | 		}		 | 
                                                            
                                    | 1004 |  | 	}				 | 
                                                            
                                    | 1005 |  |  | 
                                                            
                                    | 1006 |  | 	/** | 
                                                            
                                    | 1007 |  | 	 * Set the Check in and Check out Date |