isset( $spot['title'] ) ? sanitize_text_field( $spot['title'] ) : '', 'content' => isset( $spot['content'] ) ? wp_kses_post( $spot['content'] ) : '', 'icon' => isset( $spot['icon'] ) ? preg_replace( '/[^a-z0-9\-]/', '', strtolower( $spot['icon'] ) ) : '', 'icon_image' => isset( $spot['icon_image'] ) ? esc_url_raw( $spot['icon_image'] ) : '', 'link' => isset( $spot['link'] ) ? esc_url_raw( $spot['link'] ) : '', 'trigger' => ( isset( $spot['trigger'] ) && in_array( $spot['trigger'], array( 'hover', 'click' ), true ) ) ? $spot['trigger'] : 'hover', 'x' => isset( $spot['x'] ) ? floatval( $spot['x'] ) : 50, 'y' => isset( $spot['y'] ) ? floatval( $spot['y'] ) : 50, ); } return $sanitized_spots; }