=== WPrequal ===
Contributors: wprequal, kevin-brent
Tags: mortgage, survey, lead capture, lead generation, calculator, amortization
Requires at least: 4.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: /tags/8.4.2/
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Easy-to-use lead generation, lead capture, lead manager, and form builders. No advanced setup required; works well and looks great out-of-the-box.

== Description ==

Would it be great to generate and capture pre-qualified leads right on your website? Now you can!

[WPrequal](https://wprequal.com/?affid=marketing&ref=wordpress "WPrequal Home Page") is the only WordPress plugin that delivers a complete lead generation system directly to your WordPress website or landing page. It’s perfect for any business that depends on identifying strong leads:

&#x2611; Mortgage Lenders
&#x2611; Realtors
&#x2611; Home Builders
&#x2611; Any Industry . . .

With WPrequal, you can easily build lead generating survey forms using our template or customize one yourself. Use our survey, developed by an industry professional with 20+ years experience, or create your own, using as many fields as you need.

__WPrequal does not sell your leads.__ The leads are yours and yours only!

[vimeo https://vimeo.com/365333065]

Plus, as a WordPress plugin, you don’t have to leave your website to use WPrequal. The tool easily loads to your WordPress site and can be used on any page, with different designs if you wish.

__FREE License__

Best of all, there’s a free version of WPrequal to try out! It delivers:

* Basic Survey form
* Basic Contact form builder
* Registration form builder
* Mortgage and amortization calculators
* Lead Manager tool with email notification
* Plugin updates
* Product support

__Premium License__

Need more flexibility? Try WPrequal’s Affordable Pro or Premium Features

Once you’ve used the WPrequal plug-in, you’ll probably wish you could do more with it.  Pro and Premium versions include the features in the free version, plus customization tools:

* Fully customizable Survey forms, contact forms, and registration forms with custom colors, and the FontAwesome Icon Library
* Access to all lead fields
* Font Awesome Pro integration
* Product and technical support
* Notifications via text/SMS, email, or the Lead Manager tool
* Confirmation redirects

[Go Premium](https://wprequal.com/product/premium-license/?affid=marketing&ref=wordpress "Premium License")

__Pro License__

The WPrequal Pro license delivers access to time-saving CRMs via the Connect API. In addition to Pro tools, you’ll get:

* Enhanced calculator
* Pop-up messaging
* Support and integration with CRM tools:
* Advanced support
* Access to Connect API
	* Active Campaign
	* Agile CRM
	* Capsule
	* ConstantContact
	* iMax CRM
	* LionDesk
	* MailChimp
	* Zapier Webhooks
	* Zoho CRM

[Go Pro](https://wprequal.com/product/pro-license/?affid=marketing&ref=wordpress "Pro License")

__Landing Pages__

We also offer a license to support landing pages. It includes everything in Pro plus:

&#x2611; Secure hosting
&#x2611; Page maintenance
&#x2611; Social media
&#x2611; Image Library
&#x2611; Structured data
&#x2611; Priority support

[Get Landing Page](https://wprequal.com/product/landingpage-license/?affid=marketing&ref=wordpress "WPrequal Landing Pages")

__Helpful Resources__

[WPrequal Support](https://wprequal.com/support/?affid=marketing&ref=wordpress "WPrequal Support")
[How-to Guides](https://wprequal.com/category/how-to/?affid=marketing&ref=wordpress "How-to Guides")
[Shortcode Examples](https://wprequal.com/what-short-codes-does-wprequal-offer/?affid=marketing&ref=wordpress "Shortcode Examples")
[Developer Documentation](https://wprequal.com/documentation-type/developers/?affid=marketing&ref=wordpress "Developer Documentation")
[Connect API](https://wprequal.com/connect-api/?affid=marketing&ref=wordpress "Connect API")


== Installation ==

1. Upload the plugin files to the `/wp-content/plugins` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress Admin.
3. Navigate to WP Admin > WPrequal Settings.
4. Click the Get Free API Key button.
5. Add your email address.
6. Add a custom confirmation message.(optional)
7. Check the checkboxes where you want the pop-up to display. (optional)
8. Make sure to press the 'Save Changes' button.
9. If you are using the short code or widget, place them in the desired locations.

[How to Guides](https://wprequal.com/category/how-to/?affid=marketing&ref=wordpress "How-to Guides")
[Shortcode Examples](https://wprequal.com/what-short-codes-does-wprequal-offer/?affid=marketing&ref=wordpress "Shortcode Examples")

== Frequently Asked Questions ==

= Will my leads remain confidential? =

Yes. Leads are stored on your website, we do not have any way to access them.

= What industries does the WPrequal plugin work with? =

WPrequal was designed to work any industry. If you need qualified leads. WPrequal is the right plugin for you!

= How do I see my leads? =

You can see your leads three ways: through the built-in Lead Manager, which also lets you download leads into a CSV file, or via text (SMS) or email notification.

= Is WPrequal free to use? =

Yes, the basic plugin that creates the lead generation form is free. Additional services are available through the [Premium](https://wprequal.com/product/premium-license/ "Premium License") and [Pro](https://wprequal.com/product/pro-license/?affid=marketing&ref=wordpress "Pro License") license.

= Can I use WPrequal on the homepage? =

Yes, you can load it on any page and on multiple pages.

= Can WPrequal send lead entries to a webhook? =

Yes, WPrequal can POST lead entries data to any webhook. (PRO license required)

= Can my developer add custom functionality to WPrequal? =

Yes. We have [Developer Documentation](https://wprequal.com/documentation-type/developers/?affid=marketing&ref=wordpress "Developer Documentation") available.

== Screenshots ==

1. Survey Form: The easy-to-read questionnaire.
2. Lead Contact Information: Get the information you need to close more deals.
3. Valuable Information: Prequalify your leads in advance.
4. Mortgage Calculator Button: Add this one click button anywhere on your website.
5. Mortgage Calculator: An easy-to-use mobile responsive mortgage calculator.
6. Lead Notifications: Finding out about your leads is fast and convenient.
7. Popup and Registration: You choose how your users interact with your website.
8. Confirmation and Redirect: Add a custom message or redirect your leads to another webpage.
9. Connect API: Connect your website to top CRMs (upgrade required).
10. Lead Manager: Managing your leads has never been easier.
11. Mortgage Calculators: US Dollar
12. Mortgage Calculators: Euro
13. Multiple Currency: Choose your currency
14. Amortization Calculator: Easy to read graph.

== Change Log ==

= 8.4.1 =
* Update - WP core compatibility to 7.0

* Bug - Fix for PHP 8.1 compatibility
= 8.4.0 =
* Update - update api base URL

= 8.3.2 =
* Bug - echo escaped output.

= 8.3.0 =
* Update - Plugin security check update
* Update - PHP compatibility update to 7.0

= 8.2.11 =
* Bug - Undefined array key

= 8.2.10 =
* Bug - Term type option values as object.

= 8.2.9 =
* Bug - Typo fix for Principal

= 8.2.8 =
* Update - WP core compatibility to 6.5.3
* Bug - Fix calculator currency position setting

= 8.2.7 =
* Update - Request version headers
* Update - WP core compatibility to 6.4.3

= 8.2.6 =
* Update - Add additional body classes

= 8.2.5 =
* Bug - Fix headers in for Connect API requests

= 8.2.3 =
* Update - WP 6.3.1 compatibility
* Bug - Plugin setting capability

= 8.2.2 =
* Improvement - Update survey form loading screen.
* Improvement - Update form builder settings UI.

= 8.2.1 =
* Bugfix - Trash slide button not removing slide.

= 8.2.0 =
* Improvement - Optimize plugin settings functionality.

= 8.1.1 =
* Improvement - Add default email setting for notifications.

= 8.1.0 =
* Update - Update Font Awesome to version 6
* Improvement - Add post ID classes

= 7.12.1 =
* Improvement - Define constant for API request timeout

= 7.12.0 =
* Improvement - Add free access token support

= 7.11.0 =
* Improvement - Update FontAwesome icons to latest version
* Improvement - Define constant for API SSL verify

= 7.10.5 =
* Bugfix - Register form button text not printing

= 7.10.4 =
* Tweak - Remove landing page button from admin

= 7.10.3 =
* Bug Fix - Validate only required text fields

= 7.10.2 =
* Bug Fix - Set contact form ID an int

= 7.10.1 =
* Bug Fix - Set contact form type for survey

= 7.10.0 =
* Improvement - Add webhook support
* Update - Partial PHP 8 compatibility

= 7.9.3 =
* Bug Fix - Required not checked in contact form admin

= 7.9.2 =
* Tweak - Update readme
* Update - Test WP Core 7.8.2

= 7.9.1 =
* Improvement - Add filter for post-entry data
* Improvement - Add lead fields as tags for post-entry

= 7.9.0 =
* Bug fix - Allow contact form to use next slide button on survey forms

= 7.8.8 =
* Tweak - Include entry array in entry_response hook

= 7.8.7 =
* Improvement - Add hook for entry_response
* Improvement - Add redirect JS for form response

= 7.8.6 =
* Bug Fix - Hidden field default value not printing

= 7.8.5 =
* Bug Fix - Checkbox checked settings issue

= 7.8.4 =
* Bug Fix - Add required permission_callback to REST API register route
* Bug Fix - Parenthesized `a ? b : c ? d : e` is deprecated

= 7.8.2 =
* Bug Fix - Popup button form hidden
* Bug Fix - Popup button form resize on button click
* Update - Tested plugin with WP core version 5.6

= 7.8.1 =
* Improvement - Add survey form popup buttons

= 7.8.0 =
* Improvement - Add plugin Options class
* Tweak - Update API version to v3

= 7.7.9 =
* Improvement - Add args param to wprequal_view hook
* Security - Require constant ABSPATH to access files

= 7.7.8 =
* Tweak - Spelling error

= 7.7.7 =
* Improvement - Add source URL tracking
* Improvement - Better accessibility for email notification

= 7.7.6 =
* Tweak - Update readme

= 7.7.5 =
* Bug Fix - Printing false for empty confirmation message

= 7.7.4 =
* Bug Fix - Contact form details post_id type not int

= 7.7.3 =
* Improvement - Improve details logging

= 7.7.2 =
* Improvement - Add from name to email options
* Improvement - Additional survey form builder notes
* Tweak - Require contact form selection on survey forms
* Tweak - Clear transients with refresh

= 7.7.1 =
* Tweak - Add version to endpoints
* Tweak - Consolidate register endpoints
* Bug Fix - Use home_url() for WP REST API endpoints

= 7.7 =
* Tweak - Remove global variable $wprequal
* Tweak - Store survey default templates in options
* Tweak - Instantiate classes using static methods

= 7.6.16 =
* Bug Fix - Style select not printing

= 7.6.15 =
* Improvement - Add survey form styles

= 7.6.14 =
* Bug Fix - Center Sphere style icons on mobile

= 7.6.12 =
* Bug Fix - Impress icon hover color

= 7.6.11 =
* Bug Fix - Confirmation message not printing on survey form

= 7.6.10 =
* Bug Fix - Button background color for Impress survey form theme
* Bug Fix - Set contact form admin label for full name
* Improvement - Add features chart to startup form

= 7.6.9 =
* Improvement - Add contact form field options

= 7.6.8 =
* Bug Fix - Set default value none to 0 for on page popup survey form ID
* Improvement - Add section to contact forms
* Improvement - Add number input for contact forms

= 7.6.7 =
* Bug Fix - Prevent save post type conflicts with other plugins

= 7.6.6 =
* Bug Fix - Get correct posts id for survey forms on posts and pages

= 7.6.5 =
* Tweak - Allow survey popups on posts and pages only

= 7.6.4 =
* Bug Fix - Format cookie for JS
* Improvement - Add survey popup option for single posts or pages.

= 7.6.3 =
* Improvement - Add back link text settings

= 7.6.2 =
* Improvement - Add back link

= 7.6.1 =
* Bug Fix - Survey conditional logic

= 7.6 =
* Improvement - Add buttons for surveys

= 7.5.16 =
* Bug Fix - Uncomment class property

= 7.5.15 =
* Bug Fix - Extends not showing widgets

= 7.5.14 =
* Improvement - More accessibility improvements

= 7.5.12 =
* Improvements - Accessibility improvements

= 7.5.11 =
* Improvement - Add additional options to loan term

= 7.5.10 =
* Tweak - Align text left for calculators
* Improvement - Add Naira currency symbol
* Improvement -  Add classes to calculator fields

= 7.5.9 =
* Bug Fix - Broken IMG src for email notification

= 7.5.8 =
* Tweak - Adjust more survey form font sizes for mobile devices

= 7.5.7 =
* Bug Fix - Labels for contact form name filed displaying Full Name as label
* Tweak - Adjust more survey form font sizes for mobile devices

= 7.5.6 =
* Tweak - Adjust survey form font sizes for mobile devices

= 7.5.5 =
* Tweak - Adjust the calculator current method
* Bug Fix - Popup on frontpage when page_on_front is set but homepage not checked

= 7.5.4 =
* Improvement - Allow blank on amount slide settings
* Improvement - Adjust CSS for headings and subheadings
* Bug Fix - Escaped HTML not displaying correctly on Focus calculator

= 7.5.3 =
* Improvement - Add extension settings
* Bug Fix - Missing class on form builder slide options

= 7.5.2 =
* Improvement - Adjust CSS for font size and padding on calculator
* Tweak - Rename Prequal Form to Survey Form

= 7.5.1 =
* Bug Fix - Unexpected ? in ContactForm class.

= 7.5 =
* Improvement - Adjust settings to allow for translations

= 7.4.1 =
* Improvement - Hide other plugin metaboxes on contact and register form edit pages

= 7.4 =
* Improvement - Add contact and register form builder

= 7.3 =
* Improvement - Add Font Awesome pro option
* Improvement - Use html currency symbols for amount sliders
* Improvement - Optimize FA select load time
* Improvement - Add Font Awesome Icon buttons
* Improvement - Include Font Awesome kits script

= 7.2.9 =
* Bug Fix - Fix max font size for Focus calculator price

= 7.2.8 =
* Improvement - Optimize calculator HTML
* Improvement - Add focus calculator
* Improvement - Add section headings for settings
* Improvement - Add additional help buttons

= 7.2.7 =
* Tweak - Allow free users to reset survey form slides to default

= 7.2.6 =
* Tweak - Allow decimals in amount slider number inputs
* Bug Fix - Check for new settings after clearing settings during plugin update

= 7.2.5 =
* Bug Fix - Get new settings on plugin update

= 7.2.4 =
* Bug Fix - Fix app.min.css not updating in previous commit
* Bug Fix - Remove 2nd button class from survey form button

= 7.2.3 =
* Bug Fix - Add margin auto to text inputs on survey form

= 7.2.2 =
* Improvement - Add percent to amount slider currency
* Improvement - Allow empty amount slider currency
* Improvement - Add Passage and Precise survey form themes

= 7.2.1 =
* Improvement - Add referrer to post-entry object
* Improvement - Add additional social network referrer options
* Bug Fix - Add button class to register form submit button

= 7.2 =
* Improvement - Add referrer tracking functionality

= 7.1.8 =
* Tweak - Adjust mobile styles for Authentic theme

= 7.1.7 =
* Improvement - Add pot file for translations
* Improvement - Add Authentic theme for survey form
* Improvement - Smooth transition between slides

= 7.1.6 =
* Tweak - Move action hook for after post-entry
* Tweak - Require ABSPATH to display views

= 7.1.5 =
* Bug Fix - Update settings on access token change

= 7.1.4 =
* Tweak - Move nonce endpoint into method
* Tweak - Improve the functionality of setting cookies
* Tweak - Use sanitize_text_field as default sanitize function
* Tweak - Sanitize as post HTML before sanitize as string

= 7.1.3 =
* Improvement - Reduce requests to API on activation
* Improvement - Optimize activation process

= 7.1.2 =
* Improvement - CSS for max button width on survey forms

= 7.1.1 =
* Bug Fix - CSS fix for unit button on get quote form
* Improvement - Better UX for get quote contact form display
* Improvement - Styles for survey form builder add/remove icons
* Improvement - Update readme

= 7.1 =
* Improvement - Enhance settings for Amortize calculator
* Improvement - Remove common objects from globals
* Improvement - Add Get Quote functionality for mortgage calculator
* Bug Fix - Missing shade attribute for calculator shortcode

= 7.0.30 =
* Bug Fix - Get stored plugin version for API request headers

= 7.0.29 =
* Improvement - Reduce API requests for settings
* Improvement - Replace API request filter with API instance
* Improvement - Remove unused assets
* Improvement - UI/UX improvements for survey form builder
* Bug Fix - Set email mask default with activation settings
* Bug Fix - Adjust caps for premium license

= 7.0.28 =
* Bug Fix - Fontawesome regular not working in WP Admin

= 7.0.27 =
* Bug Fix - Add clear fix to css

= 7.0.26 =
* Improvement - Add action and filter hooks for developers
* Improvement - Fix layout on amortize calc months slider

= 7.0.25 =
* Improvement - Add better message in form builder
* Bug Fix - Mark amount inputs as required
* Bug Fix - Allow 0 as a value in amount inputs

= 7.0.24 =
* Improvement - Add margin under icons on survey form
* Improvement - Add filters to email settings
* Improvement - Use input event for dynamic range effect on range sliders (not effective on Microsoft browsers)
* Bug Fix - Microsoft compatibility for range input with amortize calculator
* Maintenance - Remove deprecated Update functions

= 7.0.23 =
* Bug Fix - Reduce size of small calculator slide thumbs

= 7.0.22 =
* Bug Fix - reload survey forms when slides are empty

= 7.0.21 =
* Bug Fix - Microsoft range slider on input event

= 7.0.20 =
* Bug Fix - Reduce excessive padding on calculator inputs

= 7.0.19 =
* Bug FIX - CSS compatibility issues with IE for range sliders
* Bug Fix - Assign post ID for popup at plugin activation

= 7.0.18 =
* Bug Fix - CSS compatibility issue with IE.

= 7.0.17 =
* Improvement - Add action hook for after post-entry
* Improvement - Add filter hook for entry

= 7.0.16 =
* Bug Fix - Allow redirect with multiple confirmation messages after form submission

= 7.0.15 =
* Bug Fix - Missing label for redirect inputs in form builder

= 7.0.14 =
* Improvement - Add remaining currency settings to calculators

= 7.0.12 =
* Improvement - Add lead source taxonomy to leads
* Bug Fix - Center icons when using themes

= 7.0.11 =
* Improvement - Remove other plugin metaboxes from our custom post types

= 7.0.10 =
* Bug Fix - Show default survey form if post id is not valid
* Bug Fix - Rework conditional logic rules
* Improvement - Add real estate form template
* Improvement - Optimize JS for survey form builder
* Improvement - Add select menu for survey form template upload
* Improvement - Cache survey form inputs for form builder
* Improvement - Allow edit of lead field labels in form builder
* Improvement - Misc. UI/UX fixes for form builder

= 7.0.9 =
* Bug Fix - Reformat json for mortgage form template

= 7.0.8 =
* Bug Fix - Conflict with CSS class processing icons in other plugins

= 7.0.7 =
* Bug Fix - Optimize admin JS for efficiency

= 7.0.6 =
* Add jquery dependencies for admin JS
* Bug Fix - Replace wp editor in confirmation message due to page loading issues

= 7.0.5 =
* Bug Fix - Error in app.min.js

= 7.0.4 =
* Bug Fix - more fix CSS conflicts for labels
* Improvement - Replace action hook for survey forms
* Improvement - Add break line to credit score slide labels
* Improvement - Add create slides from template functionality

= 7.0.3 =
* Bug Fix - fa CSS class for FontAwesome dropdowns
* Bug Fix - fix CSS conflicts for labels

= 7.0.2 =
* Change assets URL for app css
* Bug fix for API class in PostEntry
* Fix CSS conflicts for labels

= 7.0.1 =
* Add API version tracking

= 7.0 =
* Complete plugin rewrite

= 6.4.4 =
* Add filter for form endpoint

= 6.4.3 =
* Bug fix - remove JS when not paid version

= 6.4.2 =
* Add hidden input for pro features

= 6.4.1 =
* Add reset settings to default value functionality
* Simplify namespace

= 6.4 =
* Move HTML from objects to views files
* Bug fix - Fix error logging for emails
* MISC clean up of object properties

= 6.3.14 =
* Fix meta cap for delete leads

= 6.3.12 =
* Check if post_type property isset for Lead

= 6.3.11 =
* Adjust meta cap for delete_posts
* Bug Fix - define input as var for Note

= 6.3.10 =
* Bug Fix - missing api request headers

= 6.3.9 =
* Fix empty POST variable in Entry.
* Update Log to instantiate in Core.
* Rename General tab to Dashboard tab in WPrequal Settings.

= 6.3.8 =
* Fix misspelled work

= 6.3.7 =
* Add border to registration input

= 6.3.6 =
* Modernize styles for contact and registration forms
* Remove placeholders for text inputs

= 6.3.5 =
* Fix CSS conflict with Survey contact form width

= 6.3.4 =
* Fix CSS conflicts with misc theme styles for calculator

= 6.3.3 =
* Instantiate Note class with action hook

= 6.3.2 =
* Fix speeding error in auto update function

= 6.3.1 =
* Add Survey form themes

= 6.3 =
* Add amortization calculator
* Revamp calculator settings
* Add auto update functionality

= 6.2.14 =
* Remove access token from admin construct
* Build objects using action hooks
* Use option specific action hook for update access token
* Move Widgets Init functionality to WidgetInit class
* Move API functionality to API class
* Move Update functionality to Update class

= 6.2.12 =
* Add from email
* Add condition to success email logging

= 6.2.11 =
* Add logging for successful email and text
* Delete logs when logging is disabled

= 6.2.10 =
* Update CSS to improve layout on more themes

= 6.2.9 =
* Add style attribute to hide popup Survey form for extended popup delay

= 6.2.8 =
* Bug fix - move euro to be after amount

= 6.2.7 =
* Rename locale to form endpoint

= 6.2.6 =
* Add settings to allow Survey form customization for multiple countries

= 6.2.5 =
* Fix misc CSS issues
* Add light background version of mortgage calculator

= 6.2.4 =
* Fix form nonce being cached

= 6.2.3 =
* Add Canada postal code option

= 6.2.2 =
* Update nonce process to prevent conflicts with cache
* Add error logging for nonce failures

= 6.2.1 =

* Add contact form
* Add register form
* Add Ajax security for entry

= 6.1 =

* Update entry process

= 6.0.9 =

* Add email error logging support

= 6.0.8 =

* Fix form container class conflict with other plugins.

= 6.0.7 =

* Fix css for form width on mobile.

= 6.0.6 =

* Move dark class to form wrapper

= 6.0.5 =

* Add small calc functionality.

= 6.0.4 =

* Add form to allow user to opt-in for security and feature updates.

= 6.0.3 =

* Popup form - Bug fix load form class wprequal-form

= 6.0.2 =

* Add color picker and form light css

= 6.0.1 =

* Set survey form to use dark background by default

= 6.0 =

* This is a complete rebuild of the plugin
* Uses wprequal api2 v2

= 5.4.3 =

* Add table for lead fields list in lead profile

= 5.4.2 =

* Update lead fields list for free version

= 5.4.1 =

* Fix file path for image in email footer.

= 5.4 =

* Add namespace and reorder file structure

= 5.3.7 =

* Add wpautop to visual editor for conformation message.
* Change admin menu item WPrequal CRM to WPrequal Leads.

= 5.3.6 =

* Fix permissions issue for landing page users.

= 5.3.5 =

* Add class for easier styling of calc.

= 5.3.4 =

* Add visual editor for confirmation message.

= 5.3.3 =

* Add filter to api url to allow for more enhanced PRO version.

= 5.3.2 =

* Set permissions for export leads page to plugin cap

= 5.3.1 =

* Prevent deletion of Premium data

= 5.3 =

* Add Lead Export to CSV functionality.

= 5.2.1 =

* Css fix for radio button label

= 5.2 =

* Store form in database to help site load time.

= 5.1.1 =

* Bug Fix - Wrap objects with isset conditions in WPrequal Mail and WPrequal Text.

= 5.1 =

* Add text message notifications.
* Use wp_mail to send email notifications.

= 5.0.16 =

* Add dark styles for lead generation form.
* Add checkbox to choose dark styles in admin.

= 5.0.15 =

* Update css font size for narrow sidebars.

= 5.0.14 =

* Update css for better font sizes across all devices.

= 5.0.12 =

* Redirect to reload settings page at start up.
* Add action hook for Premium Button.

= 5.0.11=

* Make api_key a class attribute.
* Update start up form to be more helpful for new projects.

= 5.0.10 =

* Add condition for to_email for Facebook compatibility.

= 5.0.9 =

* Redirect to settings page on plugin activation.

= 5.0.8 =

* Update jQuery for popups.

= 5.0.7 =

* Update registration cookie expiration.
* Update form to allow Postal Codes from Canada.

= 5.0.4 =

* Update CSS for form popup.
* Remove button from Mortgage Calc.

= 5.0.3 =

* Add notes meta box to Lead edit page.

= 5.0.2 =

* Adjust user caps for wprequal_lead post type.

= 5.0.1 =

* Bug Fix - Remove body styles from scss.

= 5.0 =

* Add CRM to manage leads.
* Add post type for leads.
* Store lead data locally.
* Add scss for cool radio buttons.
* Add email functions for agent notifications.
* Add customizable confirmation message.

= 4.1.1 =

* Update popup css

= 4.0.8 =

* Add shortcode for mortgage calculator.
* Add shortcode for mortgage calculator button.

= 4.0.8 =

* Add action hook for Help Buttons.

= 4.0.7 =

* Add class names to admin buttons.

= 4.0.6 =

* Add range inputs to mortgage calc.

= 4.0.5 =

* More - Remove conflicts with older versions of Fontawesome.

= 4.0.3 =

* Remove conflict with older versions of Fontawesome.

= 4.0.2 =

* Add class to close pop up onClick of background.

= 4.0.1 =

* Add icon to mortgage calculator button.

= 4.0.0 =

* Add mortgage calculator widget.
* Add mortgage calculator popup button widget.

= 3.1.2 =

* Add `class` to `<tr>` in admin.

= 3.1.1 =

* Update user roles and caps.
* Add landing page link to admin.

= 3.1.0 =

* Improve form validation

= 3.0.8 =

* Update css for popup on screen with under 380px

= 3.0.7 =

* Move Fontawesome to wprequal server.
* Enqueue Styles late to prevent other plugin css overwriting ours.
* Enqueue JS early to prevent other plugin JS from breaking ours.

= 3.0.7 =

* Update Fontawesome icons.

= 3.0.6 =

* Add back up font for Google Font

= 3.0.5 =

* Bug fix - Remove undefined variable.

= 3.0.4 =

* Bug fix - Remove undefined variable.

= 3.0.3 =

* Add forced registration to pop-up.

= 3.0.2 =

* Update to email to work with Facebook Tabs.

= 3.0.1 =

* Enqueue Styles earlier to print styles in head.

= 3.0.0 =

* This is a major update to the entire plugin.

= 2.1.0 =

* Move settings to a sub-menu page.
* Bug fix - correct input value for `header_font_size`

= 2.0.0 =

* Enqueue scripts/styles only when widget is present.
* Replace submenu page with main menu page.
* Add API connections to display leads on admin page.
* Add admin nonce to admin listeners.

= 1.1.2 =

* Fix bug for api request error.


= 1.1 =

* Change to readme.txt - Plugin Description.
* Upgrade function calls to use the WP action and filters api.
* Update api version.
* Add `[wprequal]` shortcode.
* Update style.css for new api response options.
* Update wprequal.js to receive Ajax response from api.

* Bug fix activation token.

= 1.0 =

* Change to readme.txt - Installation Instructions.
* Change to readme.txt - Plugin Description.

== Upgrade Notice ==

= 8.4.0 =
* Update Required - Premium and Pro API base URL has changed

= 7.12.0 =
* ***Update Required*** - API v2 has been completely removed, Update immediately to insure proper functionality

= 7.8.0 =
* Update Recommended - API 2 has been deprecated and will be removed without further notice

= 7.5.1 =
* Update Required - PHP Fatal Error for PHP versions prior to PHP 7.0 in WPrequal v7.3 to v7.5

= 7.5 =
* Warning - API version deprecated update soon.
* Warning - PHP 5.6 or higher will be required soon.

= 7.0 =
* Notice - This update includes a major plugin rewrite.

= 6.4 =
* Critical Update - Bug fix to insure email delivery with error logging.

= 6.3 =
Required Update - We have updated our API settings. This update is required to maintain proper functionality.

= 6.2 =

* Critical security update - Required.

= 6.0.3 =

* API v3 has been deprecated and will be removed in July 2019

= 6.0 =

* Critical Update - API v3 has been deprecated and will be removed in July 2019

= 5.1 =

* Critical Update - A plugin update to v5.1 or higher is REQUIRED. API version 1.1 will be removed Aug 1, 2018.
* Critical Update - API version 2.0 has been deprecated and will be removed very soon. Update to v5.1 or higher is REQUIRED.

= 5.0 =

* Critical Update - A plugin update is REQUIRED. API version 1.1 will be removed Aug 1, 2018.
* Critical Update - API version 2.0 has been deprecated and will be removed very soon.

= 3.0.0 =

* Critical Update - API version 1.1 will be removed very soon.

= 2.0.0 =

* Critical Update - API version 1.1 has been deprecated and will be removed soon.

= 1.1.2 =
* Minor bug fixes.

