Somethumb Email Format for Advanced Custom Fields
v1.0.4scottweiss · 2026年10月30日 上架
Adds an Email Address or Click to Mail return format setting to Advanced Custom Fields Email fields.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 564
- 最近更新
- 2026年11月9日
需要 WordPress 6.0+已测试到 7.1.5PHP 8.0+
贡献者
截图
Adds email return format options to Advanced Custom Fields, including a clickable mailto link.
- Email Address (default): returns the stored email address as plain text.
- Click to Mail: returns an escaped HTML mailto link displaying the email address.
Works with get_field() and get_sub_field(), including Advanced Custom Fields repeater subfields. Saved field values are unchanged.
Requires Advanced Custom Fields or Advanced Custom Fields PRO to be active.
When using Click to Mail in templates, output the returned HTML with wp_kses_post() instead of esc_html(). For plain email addresses, use esc_html().
