跳到内容

Hugoatcanada Shortcode Bridge for Contact Form 7

v1.0.0

hugoatcanada · 2026年9月21日 上架

Lets you use regular WordPress shortcodes both in the visible text of a Contact Form 7 form and in its Mail Template.

正在使用
10 以下
评分
暂无
累计下载
218
最近更新
2026年9月22日
需要 WordPress 5.8+已测试到 7.1.5PHP 7.4+

贡献者

截图

A shortcode shown as literal text in the Contact Form 7 editor (before activating the plugin).
A shortcode shown as literal text in the Contact Form 7 editor (before activating the plugin).
The same shortcode replaced by its value in the published form (after activating the plugin).
The same shortcode replaced by its value in the published form (after activating the plugin).

Contact Form 7 has its own tag syntax ([text], [checkbox], [textarea], and so on) and, by design, does not process regular WordPress shortcodes — neither in the visible form editor nor in the Mail Template used to compose the notification email. This means that a shortcode placed in either of those two places is shown or sent as literal text instead of being replaced by its value.

This plugin bridges that gap in two places at once:

  • The form’s free text (what visitors see on the page)
  • The Mail Template (the subject and body of the email sent on submission)

Other similar tools only cover the visible form text and leave the Mail Template untouched, which is a common source of confusion when a shortcode looks fine on the page but shows up unprocessed in the notification email.

This plugin is not affiliated with, endorsed by, or sponsored by the Contact Form 7 project. “Contact Form 7” is a trademark of its respective owner; this plugin simply extends the behavior of forms built with it.

What it does:

  • Enables WordPress shortcodes in the free text of any Contact Form 7 form on the site
  • Enables WordPress shortcodes in the Mail Template’s subject and body
  • Does not change the behavior of Contact Form 7’s own tags ([text], [email], [submit], etc.)
  • Adds no settings screen: it’s two small filters, nothing to configure

What it does NOT do:

  • It does not allow shortcodes inside the value of a Contact Form 7 tag (for example, [text* name "[another_shortcode]"]) — there, Contact Form 7 parses the content as part of its own syntax, not as free text.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums