Title: Mortgage Rates
Author: Mortgage Calculator
Published: <strong>2010年1月26日</strong>
Last modified: 2026年10月27日

---

プラグインを検索

![](https://ps.w.org/mortgage-rates/assets/banner-772x250.png?rev=3763071)

![](https://ps.w.org/mortgage-rates/assets/icon-256x256.png?rev=3763071)

# Mortgage Rates

 作者: [Mortgage Calculator](https://profiles.wordpress.org/mlcalc/)

[ダウンロード](https://downloads.wordpress.org/plugin/mortgage-rates.1.4.1.zip)

 * [詳細](https://ja.wordpress.org/plugins/mortgage-rates/#description)
 * [レビュー](https://ja.wordpress.org/plugins/mortgage-rates/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/mortgage-rates/#installation)
 * [開発](https://ja.wordpress.org/plugins/mortgage-rates/#developers)

 [サポート](https://wordpress.org/support/plugin/mortgage-rates/)

## 説明

[Mortgage Rates](https://www.mlcalc.com/mortgage-rates/) adds a compact box of current
US mortgage rates to your WordPress site. It lists the average 30-year fixed, 15-
year fixed and 5/1 ARM rates with the change since the previous week, and a “View
Trend” link to the full rates page. It is meant for mortgage officers, real-estate
agents and finance or home-buying blogs that want fresh rate content for their readers
without updating it by hand. Add it as a Gutenberg block, a sidebar widget or the`[
mlrates]` shortcode.

The widget shows the weekly U.S. average rates (Freddie Mac Primary Mortgage Market
Survey) published by [mlcalc.com](https://www.mlcalc.com/mortgage-rates/). Your 
site fetches them as data and caches them; all of the widget’s code ships with the
plugin.

#### Features

 * Current average 30-year fixed, 15-year fixed and 5/1 ARM mortgage rates
 * Weekly change shown next to each rate
 * Updates automatically: your server refreshes the data at most every six hours
   and keeps the last good copy if the source is unreachable
 * Gutenberg block “Mortgage Rates” with a live preview, sidebar widget, `[mlrates]`
   shortcode or a template function
 * Wide (300px) or narrow form
 * “View Trend” link that opens the full mortgage rates page on mlcalc.com in a 
   new tab
 * No API key or account needed

#### How to use

In the block editor, click the “+” button, search for “Mortgage Rates” and add the
block; the sidebar lets you set the state label and the size.

Or add the shortcode to a page or post:

    ```
    [mlrates]
    ```

Set the form size or the state label:

    ```
    [mlrates state="NY" size="narrow"]
    ```

You can also add the “Mortgage Rates” widget under Appearance > Widgets, or call`
<?php display_mlcalc_rates(); ?>` from a theme template.

#### Shortcode parameters

 * size = wide | narrow
 * state = a US state code, for example NY. It sets the name shown in the widget
   heading and the state rates page the heading links to. The rate values shown 
   are the U.S. averages.

#### Who it is for

Mortgage officers, real-estate agents, home-buying and personal-finance blogs.

#### Please note

The rates are national averages for information only. They are not your lender’s
rates and not an offer.

### External services

This plugin gets the current mortgage rates from mlcalc.com (operated by ARSIDIAN
LLC). Your WordPress server requests https://www.mlcalc.com/mortgage-rates/rates.
json when the widget is shown and the cached copy is older than six hours (or an
hour after a failed request). The request is made by your server, not by visitors’
browsers, and sends no data about your site’s visitors; mlcalc.com sees only your
server’s IP address and the standard request headers WordPress sends. The response
contains only the rates and their date, which are stored in your database so the
widget keeps working if mlcalc.com cannot be reached.

When a visitor clicks “View Trend”, the mlcalc.com mortgage rates page (https://
www.mlcalc.com/mortgage-rates/) opens in a new tab; nothing is sent unless the visitor
clicks.

 * Service: https://www.mlcalc.com/mortgage-rates/
 * Terms of use: https://www.mlcalc.com/terms.htm
 * Privacy policy: https://www.mlcalc.com/privacy.htm

### Mortgage Rates Screenshots

 1. The Mortgage Rates front-end, as it appears in your WordPress Sidebar.
 2. The Trend Chart and Detailed Rates, as it appears when a visitor clicks the View
    Trend anchor.
 3. The Mortgage Rates widget configuration dialog, as it appears within WordPress 
    Administration Interface.

## スクリーンショット

[⌊The wide rates box with the 30-year and 15-year fixed averages.⌉⌊The wide rates
box with the 30-year and 15-year fixed averages.⌉[

The wide rates box with the 30-year and 15-year fixed averages.

[⌊The narrow version of the rates box, with a state name in the heading.⌉⌊The narrow
version of the rates box, with a state name in the heading.⌉[

The narrow version of the rates box, with a state name in the heading.

[⌊The Mortgage Rates block in the block editor, with the state and form size settings
in the sidebar.⌉⌊The Mortgage Rates block in the block editor, with the state and
form size settings in the sidebar.⌉[

The Mortgage Rates block in the block editor, with the state and form size settings
in the sidebar.

## ブロック

このプラグインは1個のブロックを提供します。

 *   Mortgage Rates Current US average mortgage rates: 30-year fixed, 15-year fixed
   and 5/1 ARM with the weekly change.

## インストール

 1. Upload the `mortgage-rates` directory (including all files within) to the `/wp-
    content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

The Mortgage Rates plugin can be used in one of two ways: if you are using widgets,
just add the plugin to the sidebar through the `Appearance -> Widgets` menu in WordPress.
If you aren’t using widgets, add the following code: `<?php display_mlcalc_rates();?
>` to your template where you would like the rates box to appear.

#### Usage

 * If you are using widgets, just add the Mortgage Rates plugin to the sidebar through
   the `Appearance -> Widgets` menu in WordPress.
 * Add the following code: `<?php display_mlcalc_rates(); ?>` to your template where
   you would like the calculator form to appear.
 * Add the shortcode `[mlrates]` to your page or post and configure default parameters.

#### Shortcode parameters

 * size = wide | narrow
 * state = any US state here

#### Shortcode examples

    ```
    [mlrates]
    [mlrates state="NY" size="narrow"]
    ```

## FAQ

### How do I add the rates to a page?

In the block editor add the “Mortgage Rates” block. In the classic editor or a Shortcode
block use `[mlrates]` (or `[mlrates state="NY" size="narrow"]`). In a sidebar use
the “Mortgage Rates” widget.

### Where do the rates come from?

The weekly U.S. average rates (Freddie Mac Primary Mortgage Market Survey) as published
by mlcalc.com. Your WordPress server downloads them from https://www.mlcalc.com/
mortgage-rates/rates.json and stores them in your database.

### How often are they updated?

The source is updated weekly. Your site checks for new data when the widget is shown
and its cached copy is older than six hours (or an hour after a failed request).

### Are these my lender’s rates?

No. They are national average rates from a weekly survey. They are for general information
and are not an offer or a quote.

### Can I show rates for a single state?

Not as separate numbers: the values are always the U.S. averages. The `state` attribute
only changes the state name in the heading and the state rates page the heading 
links to on mlcalc.com.

### Can I put it in a sidebar and in a post?

Yes. Use the widget in a sidebar or widget area and the `[mlrates]` shortcode in
posts and pages.

### Does the plugin send my visitors’ data anywhere?

No. Rates are fetched by your server, not by visitors’ browsers, and no data about
visitors is sent. See the External services section for details.

### May I use your widget on my commercial website

Yes. Absolutely.

## 評価

![](https://secure.gravatar.com/avatar/b267fc5d57658f99040aec0841f80a2a07efcb22ce3830eeb59acd3e3bf5ecd2?
s=60&d=retro&r=g)

### 󠀁[Best mortgage calculator](https://wordpress.org/support/topic/works-1197/)󠁿

 [Ethan O’Sullivan](https://profiles.wordpress.org/ethanosullivan/) 2017年2月12日

After testing multiple mortgage calculators on the WordPress repo, this is by far
the best one. I can insert the calculator anywhere using a shortcode and the setting
page provides many options.

![](https://secure.gravatar.com/avatar/cfe6de2ccab9f0c86f1067692120e434c8fda46d692d2d0ed7edb320a17f344f?
s=60&d=retro&r=g)

### 󠀁[Works but pretty basic](https://wordpress.org/support/topic/works-but-pretty-basic/)󠁿

 [fergmantn](https://profiles.wordpress.org/fergmantn/) 2016年9月26日

Seems to be pulling the correct values from the documented page. However, I wish
there some more customization available.

 [ 10件のレビューをすべて表示 ](https://wordpress.org/support/plugin/mortgage-rates/reviews/)

## 貢献者と開発者

Mortgage Rates はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ Mortgage Calculator ](https://profiles.wordpress.org/mlcalc/)

“Mortgage Rates” は1ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/mortgage-rates/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“Mortgage Rates” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/mortgage-rates)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/mortgage-rates/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/mortgage-rates/)をチェックする
か、[開発ログ](https://plugins.trac.wordpress.org/log/mortgage-rates/)を [RSS](https://plugins.trac.wordpress.org/log/mortgage-rates/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.4.1

 * Fix: the block editor preview showed “loading…” instead of the rates.

#### 1.4.0

 * Gutenberg block “Mortgage Rates” (state label and size, live preview).
 * Translation-ready: the widget labels, admin texts and block texts can be translated
   on translate.wordpress.org.
 * A review reminder in the admin after two weeks, dismissible.

#### 1.3.15

 * Security: widget settings are saved only on requests whose nonce WordPress has
   verified (closes a CSRF on the classic widgets screen).
 * Rates from mlcalc.com are checked for plausible, finite values and the response
   size is limited.

#### 1.3.14

 * Removed the unused jquery.pngFix.js file.

#### 1.3.13

 * Security: escape all output (widget title, state name, URLs and the form templates).
 * Security: saving the widget settings now requires the edit_theme_options capability(
   core verifies the widgets nonce), and whitelists the state and form size.
 * Shortcode attributes are sanitized instead of being extracted into variables.
 * No remote code: the widget script ships with the plugin and loads in the footer;
   the rates are fetched by your server from mlcalc.com as data (rates.json), cached
   for six hours, with the last good copy kept for outages. “View Trend” opens the
   rates page in a new tab.
 * Deleting the plugin removes its settings and cached rates.
 * Documented the external service in readme.txt.

## メタ

 *  バージョン **1.4.1**
 *  最終更新日 **2週間前**
 *  有効インストール数 **300+**
 *  WordPress バージョン ** 5.5またはそれ以降 **
 *  検証済み最新バージョン: **7.1.4**
 *  PHP バージョン ** 7.0またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/mortgage-rates/)、[Russian](https://ru.wordpress.org/plugins/mortgage-rates/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/mortgage-rates)
 * タグ
 * [mortgage](https://ja.wordpress.org/plugins/tags/mortgage/)[mortgage rates](https://ja.wordpress.org/plugins/tags/mortgage-rates/)
   [rates](https://ja.wordpress.org/plugins/tags/rates/)[widget](https://ja.wordpress.org/plugins/tags/widget/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/mortgage-rates/advanced/)

## 評価

 5つ星中4つ星

 *  [  1 5-星レビュー     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=4)
 *  [  1 3-星レビュー     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/mortgage-rates/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/mortgage-rates/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/mortgage-rates/reviews/)

## 貢献者

 *   [ Mortgage Calculator ](https://profiles.wordpress.org/mlcalc/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/mortgage-rates/)