YOOmortgage Documentation
Overview
YOOmortgage puts mortgage calculators on YOOtheme Pro sites on WordPress: sixteen calculators and a payment breakdown chart, inline on the page or behind a button in a popup. Every calculator ends in a branded PDF report. With lead capture on, the visitor gives an email address to get the report, the lead is saved on your site, and a copy is emailed to you.
Calculators and the chart go on the page through two YOOtheme Pro builder elements in the YOOfoundry group, Mortgage Calculator and Payment Breakdown. There are no shortcodes, so YOOmortgage needs YOOtheme Pro. The settings are at wp-admin > YOOfoundry > YOOmortgage.
YOOmortgage is built around US loan programmes. It has FHA, VA and USDA calculators, shows amounts in dollars, and can show your NMLS ID under every calculator. Each calculator shows a built-in disclaimer under its results, and the Disclaimer setting on the Lead capture tab replaces it with your own wording.
The sums run in the visitor’s browser, and so does the PDF. The visitor’s numbers stay there until they ask for a report by email.
Requirements
| WordPress | 6.1+ |
| PHP | 8.0+ |
| YOOtheme Pro | 5.0+, as the active theme or the parent of your child theme |
| Frontend dependency | UIkit CSS and JavaScript, supplied by YOOtheme Pro |
The calculators and the chart are builder elements, and they register only while YOOtheme Pro is running, so without it nothing shows on your pages. Their layout, tabs, popups and amortisation schedule use the UIkit CSS and JavaScript that YOOtheme Pro loads; YOOmortgage does not bundle or load UIkit itself.
What leaves your server
- The visitor’s numbers stay in the browser until they ask for a report by email. The PDF is built there too, with a library that ships inside the plugin and loads from your own domain the first time a visitor asks for a report.
- A report request goes to your own site. It carries the email address, the name and phone when you ask for them, the consent tick, the page address, and the calculator’s inputs and results. Your site saves the lead and sends two emails through WordPress’s own mail function.
- Cloudflare Turnstile, only when it is switched on and both its keys are set. Then a page that shows a report form loads Cloudflare’s script in the visitor’s browser, and your server sends each answer, your Secret Key and the visitor’s IP address to Cloudflare to confirm it. A page with no report form, such as one with only the payment chart, loads nothing from Cloudflare.
- The daily license check, once a key is in place, sends the key, the site’s home URL and the product name to yoofoundry.com.
- The update check sends the product, the installed version and the PHP and WordPress versions. The key goes in a request header, not in the URL. Define
YOOMORTGAGE_DISABLE_UPDATE_CHECKastrueinwp-config.phpto stop the update check.
Setup
Installing
- Download the plugin zip from your YOOfoundry account.
- In wp-admin go to Plugins > Add New > Upload Plugin, choose the zip, install and activate.
- Paste your license key on YOOfoundry > Settings, or on the License tab of YOOfoundry > YOOmortgage, to turn on updates through Dashboard > Updates, and support. A key already saved for another YOOfoundry plugin on the site works too.
YOOmortgage creates its leads table, {prefix}yoomortgage_leads, and schedules the daily lead purge. On its first run it empties YOOtheme’s cache and the common page caches (see “Caches YOOmortgage empties”). Lead capture starts off, so every calculator offers Download My Report until you switch it on.
Entering your license key
The License key card is on the License tab of YOOfoundry > YOOmortgage. Paste the key from your yoofoundry.com account and press Save key. It looks like yf_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6.
- Check again asks yoofoundry.com about the key again and clears WordPress’s update cache. The tab then says “License checked. A new release, if there is one, shows at Dashboard > Updates.”
- Your account opens yoofoundry.com/account/.
- Saving an empty field removes YOOmortgage’s own key.
The line under the field shows the key’s status:
| Status line | What it means |
|---|---|
| No key yet. Paste the one from your account. | YOOmortgage found no key anywhere it looks. |
| License active, renews … | The key is valid, and updates and support are on. The line ends with the renewal date. |
| The server’s reason | yoofoundry.com refused the key and says why, for example that it has expired. |
| License active, renews …, as of the last successful check. | The key was valid at the previous check, but the latest check failed: yoofoundry.com could not be reached, or sent an answer the plugin could not read. It is tried again daily, or use Check again. |
| Could not reach yoofoundry.com. Try Check again in a moment. | A newly saved key could not be checked yet, for the same reasons. |
| Not checked yet. Press Check again. | The key is saved but has not been checked. |
The key is checked again daily. A failed check keeps the last verdict: only a refusal from yoofoundry.com turns a valid key invalid. With no YOOfoundry key anywhere on the site, YOOfoundry > Overview shows one notice asking for it, with an Enter key link to YOOfoundry > Settings. The Overview also lists YOOmortgage with its version and license status.
YOOmortgage takes the first key it finds, in this order:
YOOFOUNDRY_LICENSE_KEYinwp-config.php. It wins over every other key, and the card shows “Set in wp-config.php with YOOFOUNDRY_LICENSE_KEY.” in place of the field. Agencies can put the same line in each client site’swp-config.php.- The key saved on the License tab.
- A key saved on YOOfoundry > Settings or in another YOOfoundry plugin on the same site. The field then stays empty and reads “Using the shared YOOfoundry key”. There’s nothing to paste. YOOfoundry > Settings holds the key under License key for all plugins, and its Automatic updates switch lets WordPress install new YOOfoundry releases on its own.
define('YOOFOUNDRY_LICENSE_KEY', 'yf_your_key_here');
The key turns on updates, through Dashboard > Updates, and support. The calculators, reports and lead capture work the same with or without one. Getting Started explains keys, renewals and updates for every YOOfoundry plugin.
The settings page
Where: wp-admin > YOOfoundry > YOOmortgage, for administrators. The YOOfoundry header carries six tabs:
- General: Report Color, lead retention, the share button, spam protection, and what deleting the plugin removes. See “General tab”.
- Branding: the logo and company details for the PDF and the emails. See “Branding tab”.
- Lead capture: the email form, where leads go, the disclaimer, consent and the wording of the report email. See “Lead capture tab” and “Report email”.
- Calculators: labels, default values and hidden fields, one calculator at a time. See “Calculators tab”.
- Leads: every saved lead, with CSV export. See “Leads tab and personal data”.
- License: the key. See “Entering your license key”.
The General, Branding, Lead capture and Calculators tabs each save with their own Save Changes button. The plugin’s row on the Plugins screen links to Settings, Leads and License.
Placing a calculator
A calculator goes on a page you build with the YOOtheme builder, as the Mortgage Calculator element. Each element has its own switches for lead capture and where its leads go, the report button’s style and the amortisation schedule, so a page that needs to differ costs one setting on that element instead of a change to every calculator on the site.
- Edit a page with the YOOtheme builder.
- Add Mortgage Calculator from the YOOfoundry group. It arrives with Conventional (Fixed Rate) ticked.
- On its Calculators tab, tick each calculator to show. Two or more become tabs, and Default picks the one that opens first.
- On its Settings tab, set Mode to Inline or Popup.
- Save. The calculator renders on the front end.
“The Mortgage Calculator element” lists its settings, and “The calculators” lists what each calculator works out.
Features
The Mortgage Calculator element
Where: YOOtheme builder > add element > group YOOfoundry > Mortgage Calculator.
The element’s tabs:
- Calculators: a tick box per calculator, and Default.
- Settings: Mode, Button Label, Popup Button, Report Button, Show amortization schedule, Lead Capture, Email To and Card, plus YOOtheme’s standard width, alignment, animation and visibility fields.
- Advanced: YOOtheme’s standard advanced fields, including a CSS box for this element. In it,
.el-elementis the element itself, and any other selector applies only inside the element. In Popup mode the popup opens outside the element, so the box styles only the button.
How it renders:
- One calculator ticked renders on its own, with no tab strip. Two or more become tabs, in the order of the tick boxes, whatever order you tick them in. The tab labels are the calculator names in “The calculators”.
- None ticked shows editors “YOOmortgage: switch on at least one calculator in this element.” and shows visitors nothing.
- Popup mode shows a button instead, labelled by Button Label and styled by Popup Button, that opens the calculators in a popup. Card is ignored there, since the popup has its own frame. A calculator in a popup starts up when the popup first opens. Until then it works nothing out and shows no Cloudflare check.
- Lead Capture decides the report button for this element. Set to Inherit, it follows Email Lead Capture on the Lead capture tab. Set to On, it shows the email form even when that setting is off. Set to Off, it shows Download My Report instead.
- Email To, with Lead Capture set to On, sends this element’s lead notifications to the addresses you enter, separated by commas, instead of to Send Leads To. Left blank, or with Lead Capture on Inherit, notifications go to Send Leads To. The addresses never appear in the page source: the page carries a key, and your site looks the addresses up when a lead arrives.
- Report Button styles Email My Report and Download My Report as Default, Primary, Secondary or Text, from your YOOtheme style.
The Payment Breakdown element
Where: YOOtheme builder > add element > group YOOfoundry > Payment Breakdown.
A donut chart of one monthly payment in five parts: Principal & Interest, Property Taxes, Insurance, PMI / MIP and HOA. Visitors type each amount, and the donut, the monthly total in its centre and each part’s percentage update as they type.
Its money fields take digits, commas and a decimal point only, like the calculators’ fields, and the chart counts any amount below zero as 0, in the total and in its slice.
It stands alone. It doesn’t read a calculator on the same page, has no report button and captures no leads. Its only setting is Chart, with Payment Breakdown as the one choice, plus YOOtheme’s standard fields.
The calculators
Where: the Mortgage Calculator element’s Calculators tab. The type names the calculator in a share link and in the developer hooks.
| Calculator | Type | What it works out |
|---|---|---|
| Conventional | cv |
Monthly Payment on a fixed-rate loan, split into Principal & Interest, Monthly Taxes, Monthly Insurance, Monthly PMI and Monthly HOA. |
| FHA | fha |
Monthly Payment with Monthly MIP, and the Upfront MIP financed into the loan. |
| VA | va |
Monthly Payment with the VA Funding Fee financed into the loan, or no fee when the borrower selects the exemption. |
| USDA | usda |
Monthly Payment with the first year’s Monthly Guarantee Fee, and the Upfront Guarantee Fee fully financed into the loan. |
| Jumbo | jumbo |
As Conventional, with defaults for a large loan. |
| Adjustable Rate (ARM) | arm |
Initial Monthly Payment, Max After First Adjustment and Max Lifetime Payment for a 5/1, 7/1 or 10/1 loan, including applicable PMI. |
| Investment Property | investment |
As Conventional, with defaults for an investment property. |
| Second Home | second_home |
As Conventional, with defaults for a second home. |
| Affordability | mha |
You Can Afford Up To, with the Estimated Monthly Payment, Loan Amount and Debt-to-Income Ratio behind it. |
| Refinance | rc |
Monthly Savings against the current loan, the Break-Even Point and Lifetime Savings. |
| DTI | dti |
Back-End DTI and Front-End DTI, and the programmes listed under Likely Qualifies For. |
| Mortgage Points | points |
Monthly Savings from buying the rate down, the Break-Even Point and Lifetime Savings. |
| Extra Payment | extra |
Interest Saved and Time Saved by paying extra principal every month. |
| Bi-Weekly | biweekly |
Interest Saved and Time Saved by paying half the monthly payment every two weeks, which adds one monthly payment a year. |
| DSCR | dscr |
DSCR, the property’s net operating income divided by the loan payment, with Loan Qualifies? against Target DSCR (Lender Minimum), Monthly Cash Flow and Max Loan at Target DSCR. |
| Rent vs. Own | rent_vs_own |
Better Choice (Buying, Renting or Toss-Up) over the years the visitor plans to stay, with the Wealth Difference, Break-Even Point and PMI During Your Stay. |
What the sums assume:
These are illustrative US loan estimates, not quotes, APRs or underwriting decisions. Interest-rate and expense defaults are editable examples. Program fees change, so confirm current figures with each program.
- Conventional, Jumbo, Investment Property and Second Home share one formula. Only their defaults and slider ranges differ. PMI is added when the loan is more than 80% of the price, at the Mortgage Insurance Rate, which starts at 0 on Jumbo and Investment Property.
- FHA finances a 1.75% upfront premium into a standard forward loan and adds annual MIP from HUD’s term/LTV table. Its $726,200 base-loan split remains in the August 12, 2026 edition of Handbook 4000.1, Appendix 1.0. That premium threshold is separate from the annually updated conforming and county loan limits.
- VA finances the purchase-loan funding fee unless Exempt from VA Funding Fee? is selected. Nonexempt first use with less than 5% down is 2.15%; subsequent use is 3.3%. Both use 1.5% from 5% to below 10% down, and 1.25% at 10% down or more, with the same rates for Reserves and National Guard members. Selecting exemption removes the fee from the results and amortisation principal. Confirm eligibility with the lender; the calculator does not determine whether the borrower is exempt.
- USDA uses the FY2027 Section 502 Guaranteed rates, effective October 1, 2026: 1% upfront and 0.35% annually. Because the upfront fee is fully financed and is 1% of the total including the fee, the total principal is
base loan / 0.99, settled to cents. A $275,000 base becomes $277,777.78, including a $2,777.78 fee. Monthly Guarantee Fee (Year 1) uses 0.35% of the first year’s average scheduled unpaid principal, including the financed fee, divided into twelve payments. Later annual fees use later scheduled balances; this calculator shows the first year only. The term is 30 years. - Affordability caps housing at 28% of income and all debts at 36%, whichever allows less. It includes entered taxes and insurance and illustrative 0.5% annual PMI above 80% LTV. It solves both PMI regions and includes the exact 80% boundary, then calculates the displayed payment and DTI from the resulting loan. HOA and closing costs are excluded; actual PMI and lending criteria vary.
- ARM adds principal, interest, taxes, homeowners insurance and applicable PMI; HOA is excluded. Annual PMI Rate defaults to 0.5%, and 0 models a loan without monthly borrower-paid PMI. The first-reset scenarios use the balance left after the introductory period and the stated caps; the lifetime-cap scenario uses that same balance as a conservative illustration, rather than a prediction of the index or future adjustments. Initial Monthly PMI and Monthly PMI at First Reset are shown separately.
- PMI cancellation in ARM and Rent vs. Own assumes payments are current and automatic cancellation when scheduled principal reaches 78% of original home value or in the month after the original loan term’s midpoint, whichever comes first. Loans starting at 80% LTV or less have no PMI. The entered annual rate applies to original principal without inflation. Appreciation and borrower-requested cancellation at 80% are not assumed. ARM uses the introductory-rate schedule to determine PMI at the first reset; actual ARM cancellation depends on loan terms. These are modeling assumptions, not a lender’s premium quote or cancellation decision.
- Refinance treats Refinance Fees as paid up front, not financed, and counts the payments already made in whole years from Origination Year to the current year. Origination Year takes any year from 1990 to the current one, since an existing loan can’t start in the future. Monthly Savings is the current payment less the new one.
- Refinance Lifetime Savings is every payment still due on the current loan, less every payment on the new loan, less the fees. A negative figure is a cost and shows with a minus sign.
- Refinance Break-Even Point is the first month by which the payments saved have repaid the fees, counting each loan’s payments only while it runs. While both loans run, that is the fees divided by Monthly Savings, rounded up. A shorter new loan with a higher payment can only break even after it is paid off, once the payments no longer owed on the current loan catch up. The month never falls after the current loan would have ended. When the payments saved never repay the fees, it reads “Does not break even (costs more)”. No fees and a lower payment break even at once, shown as “0mo”.
- DTI lists Conventional and VA when the back-end ratio is 50% or less, and FHA at 56.99% or less. It shows “Enter income and payment” until both are filled in.
- Mortgage Points shows “Not worth buying points” when the points don’t lower the payment, or when the savings don’t repay the cost within the loan term. Points that cost nothing and lower the payment break even at once, shown as “0mo”.
- DSCR decides Loan Qualifies? on the exact ratio, not the rounded one. The ratio shows two decimals, or three when two would round up to the target, so a ratio of 1.2476 against a 1.25 target shows 1.248, Does Not Qualify and “short by 0.002”, never a rounded 1.25 that looks like a pass.
- Rent vs. Own assumes 2% buying costs, 6% selling costs and a fixed-rate mortgage. Taxes, homeowners insurance, maintenance, HOA and rent grow at the entered rent-increase rate. Annual PMI Rate defaults to 0.5%; enter 0 for a loan without monthly PMI. The model adds each applicable month’s PMI to owning costs until scheduled cancellation and shows PMI During Your Stay. The renter invests the down payment, buying costs and each year’s difference in housing costs at the entered investment return. It calls the result a Toss-Up when the outcomes are within 1% of the original home price.
Worth knowing: a refinance can break even and still cost more over its life. When the new loan runs on after the current one would have ended, Lifetime Savings counts those extra payments, so a lower payment can show a Break-Even Point beside a negative Lifetime Savings. Six years into a 30-year loan of $300,000 at 5%, moving the remaining balance to a new 30-year loan at 4% with $1,000 in fees breaks even in 4 months, yet Lifetime Savings shows -$900, because the new loan adds six years of payments. Read the two figures together.
Limits: FHA, VA and USDA fee schedules are written into the plugin and change with plugin updates; there is no live quote feed. The calculators do not check county loan limits, property eligibility, income limits, credit or underwriting approval. Review assumptions and lender terms before relying on a result.
Primary references: HUD Handbook 4000.1, Appendix 1.0, VA fees and exemptions, USDA financed-fee and annual-fee calculation, USDA FY2027 fee announcement, and CFPB PMI cancellation guidance.
On the page
Where: any page with a calculator.
From top to bottom, a calculator shows:
- A short introduction written for that calculator. The
yoomortgage_introfilter changes it (see “Developer hooks”). - The inputs, with the labels and default values set on the Calculators tab. A hidden field doesn’t show, and the sums use its default value (see “Calculators tab”). The Down Payment slider shows the dollar amount beside the percentage. Money fields take digits, commas and a decimal point. Anything else, a pasted minus sign included, is dropped as the visitor types, and on leaving the field the amount settles to whole dollars with commas. The results, the report email and the PDF all use the amounts the fields show.
- The results, worked out again as the visitor types. The first result, such as Monthly Payment, is the large figure.
- The disclaimer, then “NMLS#” and your number when NMLS Number is set. See “Disclaimers and the NMLS line”.
- Share this estimate, when Share Button is on. See “Sharing an estimate”.
- The report button: Download My Report, or the email form ending in Email My Report when lead capture is on. See “Reports: the PDF and the emails”.
- View Amortization Schedule, on the calculators that have one. See “The amortisation schedule”.
An input that is out of range is marked with a message, and no report is made until it’s fixed. The message is tied to its field, and the field is marked invalid, so screen readers announce the problem.
Calculator tabs support Enter, Space, arrow keys, Home and End while preserving focus. Amortization tables can be focused and scrolled with the keyboard. Report dialogs return focus to their opener, and reduced-motion preferences disable tab animation and smooth scrolling. Before JavaScript calculates an estimate, results show a dash and an explanation rather than uncalculated zero amounts.
Reports: the PDF and the emails
Where: the report button under each calculator’s results. The wording of the email is on the Lead capture tab (see “Report email”).
With lead capture off, Download My Report builds the PDF in the visitor’s browser. Nothing is sent to your site and no lead is saved.
With lead capture on, the button becomes a form headed “Get your personalized report”: Email address, plus Name and Phone when you ask for them, the consent tick when you set Consent Text, and Cloudflare’s check when Turnstile is in use. Email My Report sends the request. Once your site accepts it, the PDF is made in the browser and downloads, and what the visitor sees next depends on Thank-You Redirect URL:
- With a Thank-You Redirect URL, the form reads “Report sent. Preparing your PDF…” and waits for the PDF save before going there. Library loading and saving each have an eight-second timeout. If either fails, the visitor stays, reads “The PDF copy could not be created. Your report is on its way by email.” and gets a Retry PDF download button and a Continue link.
- Without one, the “Report sent” popup opens once the PDF save succeeds. A failed PDF leaves an error and Retry PDF download on the form. Retrying the PDF does not send another lead or email.
The PDF:
- Is US Letter, built with jsPDF, which ships inside the plugin and loads from your own domain the first time a visitor asks for a report. A failed or stalled load restores the controls and can be retried.
- Has your branding at the top: the logo, Company Name, then phone, email and website, then the NMLS number and Tagline, over a rule in Report Color.
- Carries the calculator’s report title, such as “FHA Mortgage Estimate”, the first result as a large figure, “PAYMENT BREAKDOWN” with the other results, “LOAN DETAILS” with every input under your labels and in the units the form shows, such as $250,000, 5% and 30 Years, hidden fields included at their default value, and the disclaimer.
- Wraps long labels and disclaimers onto additional pages. Every page ends with a footer: “Generated”, the date it was made and the page number out of the page count, such as “1/2”, on the left, and your website on the right.
- Is saved under its title, such as
fha-mortgage-estimate.pdf.
The report email goes to the visitor, with a subject such as “Your FHA Mortgage Calculation”. It is an HTML email: a banner in Report Color with Results Heading and the calculator’s name, your Opening Copy, the first result as a large figure, the other results, the call-to-action block when one of its buttons is complete, the disclaimer, and a footer with Company Name, Phone, Email, Website and the NMLS number. The PDF isn’t attached. It downloads in the visitor’s browser instead.
The lead notification goes to Send Leads To, or to the element’s Email To when it has one, with a subject such as “New FHA Lead: ” followed by the visitor’s email address. It shows the name and phone when given, and a copy of the email the visitor received.
A reply to the notification goes to the visitor. A reply to the report goes to Email on the Branding tab, or when that is blank, to the first address the notification went to.
Both emails leave from your site’s default From address, with Company Name as the From name when it is set. To send from another address, use an SMTP plugin, as the General tab notes.
Lead capture and spam protection
Where: the Lead capture tab for every calculator, the element’s Lead Capture and Email To for one element, and Spam Protection on the General tab.
When a visitor presses Email My Report, the browser first checks the inputs and the form, then fetches a fresh security token from your site, so the form works on pages served from a full-page cache. Your site then checks, in this order:
- The security token, the hidden spam trap field, and that the request came from your own site.
- Cloudflare Turnstile, when it is in use.
- No more than 10 requests per IP address in 15 minutes.
- That lead capture is currently on for that calculator, or its form has a current authorization for an explicit element override, and that its recipient route is still authorized.
- A valid email address, and no more than 5 reports to it in an hour.
- Complete inputs and results for the calculator, including valid input ranges and result formats. A hidden field always takes your default value, whatever the request sends, so a visitor can’t change it. Results are browser-reported estimates, not independently verified loan quotes.
- Name and Phone when Ask for Name & Phone is Required, and the consent tick when Consent Text is set. With contact collection off, supplied names and phone numbers are discarded.
Then it saves the lead and sends the two emails. A failed check shows the visitor a message, for example “Too many submissions. Please try again later.” or “Too many reports requested for this email. Please try again later.”
Report forms are renewed when the site changes. Each form carries a signed token for its calculator and, on an element with its own Email To, for those addresses. YOOmortgage replaces every token, and empties the supported page caches (see “Caches YOOmortgage empties”), when:
- any post, page or other content entry is saved or deleted, apart from autosaves, revisions and the empty draft WordPress creates when you start a new post or page,
- a page’s template or its YOOtheme layout data changes,
- a YOOtheme setting changes, which is any option whose name starts with
yoothemeortheme_mods_, - Email Lead Capture, Send Leads To, Ask for Name & Phone, Consent Text or Privacy Policy URL changes,
- a calculator’s labels, default values or hidden fields change on the Calculators tab,
- YOOmortgage is activated.
A form loaded before the change, on an element with Lead Capture set to On too, is refused with “This calculator form has changed. Refresh the page and try again.” A fresh security token doesn’t get past it, and reloading the page does. Updating YOOtheme Pro rewrites its settings, so it renews every form once: a visitor who had a calculator open during the update reloads the page before sending a report. Empty host and CDN caches yourself. An element with Lead Capture set to On keeps its form when Email Lead Capture is off, through a token of its own.
A change on the Branding tab, or to Report Color, Share Button, Cloudflare Turnstile or its keys, Disclaimer or Thank-You Redirect URL empties the supported page caches without renewing forms, so cached pages show it. The report email’s wording, Lead Retention (days), Behind Cloudflare or a Proxy and what deleting the plugin removes change no page and empty no caches.
Worth knowing: the lead is saved before any email goes out. When WordPress can’t send the visitor’s email, no PDF downloads, and the visitor sees one of two messages:
- “We could not email your report, but your details reached us and we will follow up directly.” when the lead was saved or the notification went out.
- “We could not send your report or save your details. Please try again in a few minutes.” when nothing was saved and nothing was sent.
Send yourself a report from the live site once lead capture is on.
Cloudflare Turnstile:
- Set Cloudflare Turnstile to Enabled and fill in both Site Key and Secret Key, from your Cloudflare dashboard. The check then appears on the email form, and your server confirms each answer with Cloudflare.
- Turnstile is in use only once it is Enabled and both keys are set. Enabled with a key missing, the General tab says “Not in use yet: Turnstile needs both keys below. Until both are set, leads are accepted without it.”
- Cloudflare’s script loads only on a page that shows a report form: a calculator with lead capture on, inline or in a popup. A page with only the payment chart, or only calculators that offer Download My Report, loads nothing from Cloudflare.
- With Turnstile in use, an answer Cloudflare rejects is refused with “Security check failed. Please try again.”
- A page printed before Turnstile was in use has no check, so its report is refused with “This calculator form has changed. Refresh the page and try again.” Switching Turnstile on empties the supported page caches; empty host and CDN caches yourself.
- If your server can’t reach Cloudflare, the request goes through, and the other checks still apply.
- In a popup, the check appears when the popup first opens.
Behind Cloudflare or a Proxy decides which address the limit of 10 in 15 minutes counts. Set to No (default), it counts the address of the connection. Set to Yes, it counts the visitor’s address as forwarded by Cloudflare or a proxy. Choose Yes only when the site sits behind one: on a direct host the forwarded address can be forged, which lets one visitor slip past the limit. Behind a proxy that passes on its own address, No makes every visitor share one count.
Disclaimers and the NMLS line
Where: Disclaimer on the Lead capture tab, and NMLS Number on the Branding tab.
Each calculator shows its own built-in disclaimer under its results, and the same text goes into the PDF and the report email. Leave Disclaimer blank to keep the built-in texts. Text in Disclaimer replaces them.
Worth knowing: Disclaimer is one text for all sixteen calculators. Each built-in text is written for its own calculator, so once Disclaimer is filled in, every calculator shows your one text and none of its own. There is no disclaimer per calculator or per element.
With NMLS Number set, “NMLS#” and the number show under every calculator’s results, in the PDF header and in the report email’s footer. Leave it blank to hide it everywhere.
Sharing an estimate
Where: Share Button on the General tab, on by default.
Share this estimate, under each calculator’s results, copies a link to the page with every input the visitor can see packed into it, after #yoomortgage=, switched-off toggles and emptied fields included. An emptied money field goes in as 0, the amount the results used. Hidden fields stay out of the link, and a link that names one doesn’t change it: it keeps your default. The address bar shows the same link. If the browser refuses to copy, the line “Copying is blocked here. Copy this link instead.” appears with the link in a box under it, already selected. Nothing is stored on your site.
Opening the link fills the first calculator of that type to start on the page, opens its tab and scrolls to it. Inline calculators start in page order, and one in a popup starts when the popup first opens. Other calculators of the same type keep their own values.
Worth knowing: the link fills only a calculator of the same type on the same page. Move the calculator to another page and links already shared no longer fill it.
The amortisation schedule
Where: under Conventional, FHA, VA, USDA, Jumbo, Investment Property and Second Home, and Show amortization schedule on the element.
View Amortization Schedule opens a table with one row per year: Year, Principal, Interest and Balance. On FHA, VA and USDA the schedule includes the fee financed into the loan, so it matches Principal & Interest. The table is built when it opens.
Untick Show amortization schedule to hide it on one element.
Colours, cards and structured data
Where: Report Color on the General tab, and Card on the element.
- Colour. On the page, a calculator takes its accent colour from your YOOtheme style when the page loads: the large figure, the sliders, the links and the chart follow your style’s primary colour. Report Color colours the PDF and the emails, and the page only where UIkit isn’t loaded.
- Card. Card on the element puts its calculators, tab strip included, in a Default, Primary, Secondary or Hover card, or in none. The card closes inside the element, so the columns and content after it stay where they are. In Popup mode there’s no card, since the popup frames the calculators.
- Structured data. Each calculator prints a Schema.org
WebApplicationblock naming it as a finance tool, with Company Name and Website as its provider when they are set. A calculator with tabs prints oneItemListfor all its tabs instead. Two filters change or remove them (see “Developer hooks”).
Settings
General tab
Where: YOOfoundry > YOOmortgage > General.
| Setting | What it does | Default |
|---|---|---|
| Report Color | The brand colour of the PDF and the emails. The calculator on the page takes its colours from your YOOtheme style instead. The PDF reads three-digit colours such as #abc as well as six-digit ones, and uses the default for anything it can’t read. |
#1a56db |
| Lead Retention (days) | Leads older than this are deleted by a daily job. 0 keeps them until you delete them. Personal data export and erase requests are carried out whatever this says. |
0 |
| Share Button | Enabled shows the Share this estimate link under each result. | Enabled |
| Cloudflare Turnstile | Enabled adds Cloudflare’s check to the email form, once both keys are set, and loads its script only on pages that show a report form. With a key missing, the tab shows a “Not in use yet” note and leads are accepted without the check. | Disabled |
| Site Key | The public Turnstile key, starting 0x. |
empty |
| Secret Key | The private key your server uses to confirm each answer with Cloudflare. | empty |
| Behind Cloudflare or a Proxy | Yes makes the rate limit count the forwarded visitor address. See “Lead capture and spam protection”. | No (default) |
| Settings and leads | Under When YOOmortgage is deleted. Tick Delete them too to delete YOOmortgage’s settings and leads when the plugin is deleted. Unticked, they stay. See “Uninstalling”. | unticked |
Under the first two settings, an Email delivery note reads “Lead emails go out under your Company Name (Branding tab) from your site’s default address, and the report’s replies go to your Branding email. To send from a different address, set it in an SMTP plugin such as WP Mail SMTP.”
Branding tab
Where: YOOfoundry > YOOmortgage > Branding.
The PDF header and the email footer read these fields, and a blank one is left out.
| Setting | Where it shows | Default |
|---|---|---|
| Company Logo | The PDF header, scaled to fit. Upload Logo opens the media library for PNG, JPEG and WebP images, and Remove clears it. The screen recommends 300 by 80 pixels. | none |
| Company Name | The PDF header, the email footer, the From name of both emails, and the structured data. | empty |
| Phone | The PDF header and the email footer. | empty |
| The PDF header and the email footer, and where replies to the report go. | empty | |
| Website | The PDF header and foot, the email footer, and the structured data. | empty |
| NMLS Number | “NMLS#” and the number under every calculator, in the PDF header and in the email footer. | empty |
| Tagline | The PDF header, beside the NMLS number. | empty |
Logo limits:
- It has to be a file in the site’s uploads folder. YOOmortgage reads it from disk to put it in the PDF, so a logo served from somewhere else, such as a media offload service, is skipped and the PDF goes out without one. It uses the image’s medium size when WordPress has made one.
- The actual image must be PNG, JPEG or WebP, at most 1 MiB, 4,096 pixels on either axis and 8,388,608 pixels in total. Invalid URLs, paths outside uploads and files that fail image validation are rejected before embedding, including when a cached image is available.
- It is embedded in every page that has a calculator or the chart, as text the PDF turns back into an image. A large logo file makes each of those pages heavier by more than its own size, so keep it small.
Lead capture tab
Where: YOOfoundry > YOOmortgage > Lead capture.
These settings apply to every calculator. On one element, its Lead Capture overrides Email Lead Capture, and its Email To overrides Send Leads To.
| Setting | What it does | Default |
|---|---|---|
| Email Lead Capture | Enabled (borrowers enter email to get PDF) puts the PDF behind the email form, saves each lead and emails it to Send Leads To. Disabled (borrowers download PDF directly) shows Download My Report. | Disabled |
| Send Leads To | Where lead notifications go. Separate several addresses with commas. Invalid and repeated addresses are dropped on save, and with none left the WordPress admin email is used. | the WordPress admin email |
| Disclaimer | Replaces the built-in disclaimer on every calculator, on the page, in the PDF and in the email. Blank keeps the built-in texts. | empty |
| Thank-You Redirect URL | Where the visitor goes once the report is sent and the PDF save succeeds. Loading and saving each have an eight-second timeout; a failure offers Retry and Continue. Blank shows the “Report sent” popup after a successful save. | empty |
| Ask for Name & Phone | Off (email only), Optional or Required. Adds Name and Phone to the email form. | Off (email only) |
| Consent Text | Adds a required tick box, limited to 255 characters. The same saved text is shown to the visitor and stored with the lead and its timestamp. Longer entries are shortened on save with a settings notice. Blank asks for no consent. | empty |
| Privacy Policy URL | Adds a Privacy Policy link after the consent text. Shown only with Consent Text. | empty |
Report email
Where: YOOfoundry > YOOmortgage > Lead capture, under Report Email.
The wording of the email the visitor gets. Leave a field blank to use its default, and none of the defaults names a company. [First Name] and [Calculator] work in Opening Copy, Results Heading, CTA Heading, CTA Description and CTA Footnote. [First Name] becomes “there” when the visitor gave no name.
| Setting | What it does | Default |
|---|---|---|
| Opening Copy | The greeting above the numbers. | A greeting that thanks the visitor and says the figures are an initial estimate |
| Results Heading | The heading in the coloured banner. | Your Calculations |
| Calculator Name | Tick “Hide the calculator name shown under the heading” to drop the name from the banner. | shown |
| Highlighted Number Label | The label above the large figure, for every calculator. Blank uses each calculator’s first result label, such as Monthly Payment. | each calculator’s own |
| CTA Heading | The heading of the call-to-action block. | Ready to take the next step? |
| CTA Description | The text under it. | A line offering help with the next step |
| Button 1 (Primary) | Label and link of a filled button, for example your loan application. | label “Start your application”, no link |
| Button 2 (Secondary) | Label and link of an outlined button, for example your scheduling page. | label “Schedule a consultation”, no link |
| CTA Footnote | The text under the buttons. | An invitation to reply to the email |
The call-to-action block appears only once at least one button has both a label and a link. The results, the disclaimer and the contact footer are added to every email.
Calculators tab
Where: YOOfoundry > YOOmortgage > Calculators. Pick a calculator in the list labelled “Configure calculator:” and the page reloads with its fields.
Three sections, saved for that calculator alone:
- Customize Field Labels: a box per input. Blank keeps the built-in label, shown in the box.
- Customize Default Values: a box per input. Blank keeps the built-in default, shown in the box as “Default:” and the value.
- Show / Hide Fields: a setting such as “Hide Annual Insurance” for each field that can be hidden, set to No or Yes. The section notes: “A hidden field keeps its default value in the calculation. Set the default to 0 to leave it out.”
The changes apply wherever that calculator appears, and your labels carry into the PDF’s list of inputs and the lead CSV. Saving renews every report form and empties the supported page caches, so cached pages show the change (see “Lead capture and spam protection”).
Worth knowing: hiding a field takes it off the form, not out of the sums. A hidden field keeps its default value: the one in Customize Default Values, or the built-in default when that box is blank or holds no number. A rate outside its slider’s range is set to the nearest end, such as 2.5 for a Mortgage Insurance Rate of 3. The results, the PDF, the saved lead and the CSV all use it, and the visitor can’t change it, whether on the page, through a share link or by editing the request. To leave a cost out, set its default to 0 as well. With the built-in defaults, a hidden Monthly HOA still adds $50 a month on Conventional, FHA and VA, and a hidden Mortgage Insurance Rate still charges 0.5% PMI below 20% down on Conventional and Second Home.
| Calculator | Inputs | Can be hidden |
|---|---|---|
| Conventional, Jumbo, Investment Property, Second Home | Purchase Price, Mortgage Term, Down Payment, Annual Taxes, Interest Rate, Mortgage Insurance Rate, Annual Insurance, Monthly HOA | Mortgage Insurance Rate, Annual Insurance, Monthly HOA |
| FHA | Purchase Price, Mortgage Term, Down Payment, Annual Taxes, Interest Rate, Annual Insurance, Monthly HOA | Annual Insurance, Monthly HOA |
| VA | Purchase Price, Mortgage Term, First Time VA Loan?, Exempt from VA Funding Fee?, Down Payment, Annual Taxes, Interest Rate, Annual Insurance, Monthly HOA | Annual Insurance, Monthly HOA |
| USDA | Purchase Price, Mortgage Term, Down Payment, Annual Taxes, Interest Rate, Annual Insurance, Monthly HOA | Annual Insurance, Monthly HOA |
| Adjustable Rate (ARM) | Purchase Price, Down Payment, ARM Type, Mortgage Term, Initial Rate, Initial Adjustment Cap, Lifetime Cap, Annual PMI Rate, Annual Taxes, Annual Insurance | Annual Insurance |
| Affordability | Annual Income, Monthly Debts, Est. Annual Property Taxes, Est. Annual Home Insurance, Down Payment, Interest Rate, Loan Term | none |
| Refinance | Under Current Loan: Original Loan Amount, Interest Rate, Current Term, Origination Year. Under New Loan: New Loan Amount, New Interest Rate, New Loan Term, Refinance Fees | none |
| DTI | Gross Monthly Income, Proposed Housing Payment, Other Monthly Debts | none |
| Mortgage Points | Loan Amount, Loan Term, Rate Without Points, Rate With Points, Cost of Points | none |
| Extra Payment | Loan Amount, Loan Term, Interest Rate, Extra Monthly Payment | none |
| Bi-Weekly | Loan Amount, Loan Term, Interest Rate | none |
| DSCR | Gross Monthly Rent, Vacancy Rate, Monthly Operating Expenses, Loan Amount, Interest Rate, Loan Term, Target DSCR (Lender Minimum) | none |
| Rent vs. Own | Home Price, Down Payment, Interest Rate, Loan Term, Current Monthly Rent, Years You Plan to Stay, Annual PMI Rate, Home Appreciation, Annual Rent Increase, Investment Return, Annual Property Taxes, Annual Insurance, Annual Maintenance, Monthly HOA | Annual Insurance, Monthly HOA |
Leads tab and personal data
Where: YOOfoundry > YOOmortgage > Leads.
The table lists every lead, newest first, 20 to a page: Date, Contact (name and phone), Email, Calculator, Key Results (the first three results) and Actions, where Delete removes one lead after a confirmation.
Export CSV, shown once there is a lead, downloads every lead with the columns Date, Name, Phone, Email, Calculator, Consent, Source, Results and Fields. Results and Fields list each value under the label the calculator shows, with your labels from the Calculators tab. A cell that starts with an equals sign, plus sign, minus sign, at sign, tab or carriage return gets an apostrophe in front, so a spreadsheet doesn’t run it as a formula.
A lead holds the email address, the name and phone when asked, the calculator, its inputs and results, the consent wording, the page address and the date and time. Hidden fields are among the inputs, at your default value. No IP address is stored. Only the inputs and results that calculator declares are kept, each cut to 64 characters, so a forged request can’t write anything else into a lead or an email.
Leads live in YOOmortgage’s own table, {prefix}yoomortgage_leads. The Leads tab and Export CSV read this table. Lead Retention (days) on the General tab sets how long these leads stay, and at 0 they stay until you delete them.
The daily retention job compares its cutoff with the same site-local clock used by the stored creation dates; it does not reinterpret or rewrite existing timestamps. If the database refuses the purge, administrators see a notice and the failure remains recorded until a later purge succeeds.
WordPress’s privacy tools cover YOOmortgage’s leads. Tools > Export Personal Data includes them under “Mortgage Calculator Submissions”, and Tools > Erase Personal Data deletes leads with that email address from YOOmortgage’s table. If the database refuses a deletion, the request reports the data as kept, with the reason.
The rate limits keep short-lived counters keyed on a hash of the IP address, for 15 minutes, and of the email address, for an hour.
Builder element settings
Where: YOOtheme builder, on each element.
Mortgage Calculator:
| Setting | What it does | Default |
|---|---|---|
| Calculators tab | A tick box per calculator: Conventional (Fixed Rate), FHA, VA, USDA, Jumbo, ARM, Investment Property, Second Home, Affordability, Refinance, Debt-to-Income, Mortgage Points, Extra Payment, Bi-Weekly, DSCR, Rent vs. Own. | Conventional (Fixed Rate) only |
| Default | The tab that opens first. It matters only with two or more calculators. | Conventional |
| Mode | Inline, or Popup for a button that opens the calculator. | Inline |
| Button Label | The popup button’s text. Popup only. | Open Calculator |
| Popup Button | The popup button’s style: Default, Primary, Secondary or Text. Popup only. | Primary |
| Report Button | The style of Email My Report and Download My Report: Default, Primary, Secondary or Text. | Primary |
| Show amortization schedule | Shows the schedule on the calculators that have one. | on |
| Lead Capture | Inherit, On or Off. See “The Mortgage Calculator element”. | Inherit |
| Email To | Where this element’s lead notifications go, in place of Send Leads To. Separate several addresses with commas. Used only with Lead Capture set to On. | empty |
| Card | Default, Primary, Secondary, Hover or None. Ignored in Popup mode. | None |
| CSS | Custom CSS for this element, on the Advanced tab. Write .el-element for the element itself; any other selector applies only inside the element. |
empty |
Payment Breakdown:
| Setting | What it does | Default |
|---|---|---|
| Chart | Payment Breakdown, the only choice. | Payment Breakdown |
| CSS | Custom CSS for this element, on the Advanced tab. Write .el-element for the element itself; any other selector applies only inside the element. |
empty |
Caches YOOmortgage empties
On its first run, and on the first run after each update, YOOmortgage empties:
- YOOtheme’s cache folder, when YOOtheme Pro is the active theme or its parent, so the builder loads YOOmortgage’s elements.
- The common page caches: WP Rocket, W3 Total Cache, WP Super Cache, WP Fastest Cache, SiteGround Optimizer, WP Engine’s page cache, LiteSpeed Cache, Cache Enabler, WP-Optimize, Hummingbird, Breeze and Super Page Cache.
Empty any other cache by hand, such as Cloudflare’s edge cache or your host’s.
Providers are attempted independently, including WP-Optimize’s wpo_cache_flush() integration. A failed purge leaves an administrator notice and a retry marker; the version is marked refreshed only after all applicable purges succeed. The page caches are also emptied whenever report forms are renewed, such as after a post is saved, and after a change to a setting that only alters what a page shows, such as Report Color (see “Lead capture and spam protection”).
Developer hooks
| Hook | Type | Use |
|---|---|---|
yoomortgage_intro |
filter | The introduction above a calculator’s inputs. Receives the text and the calculator’s type; return the text, or an empty string to drop it. |
yoomortgage_show_amortization |
filter | Whether a calculator shows the amortisation schedule. Receives true or false and the type; return false to hide it. |
yoomortgage_schema_json_ld |
filter | One calculator’s structured data, as an array. Receives the array and the type; return an empty array to print none. |
yoomortgage_smart_schema_json_ld |
filter | The structured data of a calculator with tabs. Receives the array, the types and the calculator definitions; return an empty array to print none. |
YOOFOUNDRY_LICENSE_KEY |
constant | The YOOfoundry key, set in wp-config.php. See “Entering your license key”. |
YOOMORTGAGE_DISABLE_UPDATE_CHECK |
constant | Set to true in wp-config.php to stop the update check. |
For example, to change the introduction on Conventional, add this to your child theme’s functions.php:
add_filter('yoomortgage_intro', function ($intro, $type) {
return $type === 'cv' ? 'Work out your monthly payment.' : $intro;
}, 10, 2);
Uninstalling
Deactivating YOOmortgage keeps its settings and leads and stops its daily jobs. Network deactivation clears these jobs on each site.
Deleting it from the Plugins screen always removes its license key, its scheduled jobs and its cached data, on every site of a network. Keys saved on YOOfoundry > Settings or in other YOOfoundry plugins stay where they are.
YOOmortgage’s settings and leads stay by default. Reinstalling YOOmortgage finds them as they were. To delete them too, tick Delete them too under When YOOmortgage is deleted on the General tab before you delete the plugin. On a network, each site follows its own setting. Ticked, deleting the plugin also deletes:
- YOOmortgage’s settings, including each calculator’s labels and defaults.
- The leads, in
{prefix}yoomortgage_leads.
Export the CSV from the Leads tab first. There is no undo.
Support
Email [email protected]. Include the page address, the calculator’s type and your YOOtheme Pro version (Appearance > Themes).
FAQ
No. The key turns on updates through Dashboard > Updates, and support. The calculators, reports, lead capture and the Leads tab work the same without one. Without updates, the FHA, VA and USDA figures written into the plugin stay as they are. Licenses are on the membership page.
YOOmortgage keeps working. Updates and support stop until you renew.
Their numbers stay in their browser until they ask for a report by email, and the request goes to your own site. The one outside service is Cloudflare, when Turnstile is in use: a page with a report form loads its check, and your server sends Cloudflare the visitor’s IP address to confirm it. Nothing about visitors goes to yoofoundry.com (see “What leaves your server”).
Look on the Leads tab first. The lead is saved before any email goes out, so it is there even when the email failed. If WordPress couldn’t send the email, the visitor saw “We could not email your report, but your details reached us and we will follow up directly.” If nothing was saved or sent either, they saw “We could not send your report or save your details. Please try again in a few minutes.” Set up an SMTP plugin and send yourself a test report.
Turnstile is in use, with both keys set, and Cloudflare is rejecting the answers your server sends it. Check the Secret Key against your Cloudflare dashboard, or set Cloudflare Turnstile to Disabled. With a key missing, Turnstile isn’t used at all and leads are accepted without it.
The page was loaded before something on the site changed: a post was saved or deleted, a YOOtheme setting changed, which updating YOOtheme Pro does, a lead setting or a calculator’s settings changed, or Cloudflare Turnstile was switched on. Every report form is renewed then, or the page lacks the new check, so reloading the page fixes it. If a host or CDN cache keeps serving the old page, empty that cache (see “Lead capture and spam protection”).
The limit is 10 requests per IP address in 15 minutes. Behind Cloudflare or a proxy that passes on its own address, every visitor counts as one. Set Behind Cloudflare or a Proxy to Yes.
On the page, the calculator takes its colours from your YOOtheme style, so it matches the site. Report Color colours the PDF and the emails.
No. Disclaimer on the Lead capture tab replaces the built-in text on all sixteen at once. Leave it blank to keep each calculator’s own text.
Conventional, Jumbo, Investment Property and Second Home add PMI only above 80% LTV, at Mortgage Insurance Rate. That rate starts at 0 on Jumbo and Investment Property. A hidden rate keeps its default, so it charges PMI unless its default is 0. ARM and Rent vs. Own use Annual PMI Rate, which defaults to 0.5% and accepts 0 for a loan without monthly PMI. They omit PMI at 20% down or more and stop it at the modeled scheduled-cancellation point; ARM can therefore show zero PMI at the first reset even when it was charged initially. Actual premiums and cancellation depend on the loan terms (see “The calculators”).
A hidden field keeps its default value in the sums. With the built-in defaults, a hidden Monthly HOA on Conventional, FHA or VA still adds $50 a month. Set the field’s default to 0 under Customize Default Values on the Calculators tab to leave it out.
The new loan runs on after the current one would have ended. The Break-Even Point is when the monthly saving has repaid the fees, while Lifetime Savings counts every payment on both loans, so the new loan’s extra years can outweigh the saving. Read the two together (see “The calculators”).
The logo must be a local file in the site’s uploads folder and a valid PNG, JPEG or WebP image, at most 1 MiB, 4,096 pixels on either axis and 8,388,608 pixels total. Offloaded, missing, invalid or oversized files are skipped. See “Branding tab” for the supported upload and image limits.
No. There’s no setting for it. Amounts show in dollars with US number formatting.
No. The calculators and the chart are YOOtheme Pro builder elements, so they need YOOtheme Pro 5.0 or later as the active theme or the parent of your child theme. Without it nothing shows on your pages, and YOOmortgage has no shortcodes to fall back on.
Not unless you ask. Deleting YOOmortgage keeps the settings and every lead, so reinstalling finds them as they were. Tick Delete them too under When YOOmortgage is deleted on the General tab to delete them with the plugin, and export the CSV from the Leads tab first.
View the page while logged in as an editor. A Mortgage Calculator element with no calculator ticked shows a short note saying so. With YOOtheme Pro not the active theme or its parent, no element shows at all.
Yes. Each one runs on its own.