Somethumb Email Format for Advanced Custom Fields

Description

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().

Screenshots

Installation

  1. Upload the plugin ZIP using Plugins > Add New Plugin > Upload Plugin.
  2. Activate Advanced Custom Fields or Advanced Custom Fields PRO.
  3. Activate this plugin.
  4. Edit an Advanced Custom Fields field group, select an Email field, and choose its Return format.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Somethumb Email Format for Advanced Custom Fields” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Add Advanced Custom Fields initialization and missing-dependency admin notice.

1.0.0

  • Initial release.