Email filter - possible to apply?

Support General Email filter - possible to apply?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5715
    lemonydesignlemonydesign
    Participant

    So: I have a wysiwyg metabox field:

                array(
                    'name'  => esc_html__( 'Additional content area', 'foundation' ),
                    'id'    => $prefix . 'secondary',
                    'type'  => 'wysiwyg'

    and I output allowed tags in <?php echo wp_kses( $secondarytext, $allowed_tags); ?>

    I need to be able to protect an email in the wysiwyg area, and want to add a filter to obfuscate using the following plugin:

    https://wordpress.org/plugins/email-address-encoder/

    This is the filter:
    If the content supports WordPress filters, register the eae_encode_emails() function to it: add_filter( $tag, 'eae_encode_emails' );

    Is this possible - and if so, where to register and wrap the filter?
    Any help - most grateful

    #5730
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think you just need to run this code:

    <?php echo eae_encode_emails( wp_kses( $secondarytext, $allowed_tags) ); ?>

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Email filter - possible to apply?’ is closed to new replies.