• Resolved jsnow910

    (@jsnow910)


    Instruction in FAQ reads: If you want to encode a single email address, use the eae_encode_str() function: <?php echo eae_encode_str(‘name@domain.com’); ?>

    when I paste this: <?php echo eae_encode_str(‘name@domain.com’); ?>
    into the page, and put a real email address in place of name@domain.com nothing appears when I publish the page

    am I supposed to delete the apostrophes around name@domain.com or leave them in place?

    what else might I be doing wrong?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    The in the FAQ mentioned snippets are PHP code and don’t work in the WordPress editor.

    All email addresses you enter in the WordPress editor will be encoded automatically, you don’t need to add any shortcodes or snippets.

    Thread Starter jsnow910

    (@jsnow910)

    Thank you for this response. I understand that it should encode automatically. I’m trying to understand how the encoding of a single e-mail address should be used. If this is not done in the WordPress editor, where is it done?

    Plugin Author Till Krüss

    (@tillkruess)

    In the .php files of your theme or plugins.

    Thread Starter jsnow910

    (@jsnow910)

    I see, thank you.

    I tried to verify that the plugin is encoding automatically, but when viewing in Firefox, I do not have the option to View Page Source or View Page Info. When I select View Page Source, and then search the page for “@” in Page Source, I do not find the e-mail address. Does this confirm that the plugin has worked?

    Plugin Author Till Krüss

    (@tillkruess)

    I’d guess so. If you want to double check, post the URL here and I’ll have a look.

    Thread Starter jsnow910

    (@jsnow910)

    Just sent you an e-mail.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘encoding single email address question’ is closed to new replies.