• Resolved Efs

    (@stevendigital)


    Hello,

    Some time ago I asked if I could use the obfuscation method that plugin has for mails as a shortcode and you provided the shortcode below:

    function cmplz_obfuscate_shortcode(
    $atts = array(), $content = null, $tag = ''
    ) {
    $atts = shortcode_atts( array(
    'email' => '',
    ), $atts, $tag );
    $email = sanitize_email($atts['email']);
    ob_start();
    echo COMPLIANZ::$document->obfuscate_email($email);
    return ob_get_clean();
    }
    add_shortcode( 'cmplz_obfuscate', 'cmplz_obfuscate_shortcode' );

    After the update of the plugin to version 7 I checked the mails and saw that ofuscation does not work anymore.

    Are there any changes to be made on the code above, in order for it to work?

    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    @stevendigital the function is still there, but the implementation has now changed. It now uses the ‘antispambot()’ function, which is a core WordPress function. We have switched this in response to contributor feedback, and makes the code more aligned to default Core WordPress functionality.

    So while the method has changed, it should still work, although maybe not as visible anymore as before.

    Thread Starter Efs

    (@stevendigital)

    @rogierlankhorst

    Thank you for your reply. So I do not have to make any changes? I tried to copy and paste an email address from a site where I have implemented the code and the email address did not appear obfuscated.

    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘obfuscation support does not work after update’ is closed to new replies.