Skip to content

Instantly share code, notes, and snippets.

@jackfearing
Last active January 13, 2018 22:43
Show Gist options
  • Save jackfearing/65153a77ff9c10d00a44c301b8283306 to your computer and use it in GitHub Desktop.
Save jackfearing/65153a77ff9c10d00a44c301b8283306 to your computer and use it in GitHub Desktop.
//Add to functions.php
//https://wordpress.org/plugins/email-address-encoder/
//*****************************************************************************
// Email Address Encoder - ACF fields
//*****************************************************************************
//You cannot use Firebug, Web Inspector or Dragonfly, because they decode decimal/hexadecimal entities into plain text. To make sure email addresses are encoded, right-/secondary-click the page, click “View Source”, “View Page Source” or “Source” and search for any plain text email addresses. In Firefox, be sure to test with “View Source” not “View Selection Source”.
add_filter('acf/load_value', 'eae_encode_emails');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment