Obfuscate emails with Advanced Custom Fields

<?php $email = get_field('email'); ?>
<a href="mailto:<?php echo $email; ?>">
  <?php echo antispambot($email); ?>
</a>

Takes and Advanced Custom Field called, “Email”, email field, puts it into a variable and Obfuscates it with WordPress’ antispambot function.

Leave a Reply

Your email address will not be published. Required fields are marked *

+ 71 = 73