Tagged: x
-
AuthorPosts
-
November 7, 2016 at 3:55 am #1246797
Hi, I’m using a plugin that obfuscate email addresses across my site, for the sake of security (it is Email Address Encoder)
By default, it only encodes addresses found in posts, pages, comments, excerpts and text widgets.
Enabling it also on header and footer content has to be done manually.
How can I filter other parts of my site?
If the content supports WordPress filters, register the eae_encode_emails() function to it: add_filter( $tag, ‘eae_encode_emails’ );.
If the content is a PHP string, run it through the eae_encode_emails() function: $text = eae_encode_emails( $text );.
If you want to encode a single email address, use the eae_encode_str() function: <?php echo eae_encode_str( ‘name@domain.com’ ); ?>I’ve asked the plugin’s dev about it, and it turned out that by using a paid theme, he can’t access the source code and advised me to ask here for help.
For what I can understand, it is a matter of adding some functions, but I’m not that expert and I’m not able to do it. Some suggestions?
November 7, 2016 at 4:03 am #1246802Hey there,
It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.
Thank you for your understanding.
November 7, 2016 at 4:13 am #1246820I understand.
If possible, could you at least leave this topic open? Maybe if some other user has faced a similar situation he could point me to a solution.
November 7, 2016 at 4:16 am #1246822Sure. Thanks.
November 7, 2016 at 11:49 am #1247437To the users that could be in the same situation as me: the plugin author told me that the function that I need to add should be something like this:
add_filter( 'x_theme_footer_text', 'eae_encode_emails' );
the last part of the function is about his plugin and is correct that way, the first part is his guess about the X theme.
November 7, 2016 at 2:31 pm #1247631Hi There,
Thanks for your input for the community, please let us know if need help with anything else.
Joao
-
AuthorPosts