• Resolved deurell

    (@deurell)


    Email address encoder(EAE) version: 1.0.5
    Booking Calendar version: 6.2.2

    On my booking form in Booking Calendar I’ve chosen to auto complete the form with details from logged in users. In other words. The forms is auto completing an email field with the email address of the logged in user.

    This field in the form is encoded by the EAE. This means that the user will see the encoded email in the form – not good.

    Is there any way to exclude the page containing this form from the scanning by EAE?

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

    (@tillkruess)

    No, you can’t exclude pages. You can try adjusting the EAE_FILTER_PRIORITY:

    
    define( 'EAE_FILTER_PRIORITY', 10 );
    
    Thread Starter deurell

    (@deurell)

    Thanks
    But, doesn’t that have an effect on other pages with e-mail adresses on them?

    Plugin Author Till Krüss

    (@tillkruess)

    It will affect all pages. You gotta play around with the filter priority and see what works for you.

    The issue is either that booking calendar is calling the the_content filter too soon/late, or that the booking calendar shortcode is being generate before this plugin encodes the emails.

    Alternatively you could write a conditional to not run the eae_encode_emails filter on your page using something like:

    
    add_filter( 'init', function () {
        if ( is_page( 42 ) || is_page( 'Contact' ) || is_page( 'about-me' ) ) {
            remove_filter( 'the_content', 'eae_encode_emails', EAE_FILTER_PRIORITY );
        }
    } );
    

    You could also target a specific page template if you like.

    Thread Starter deurell

    (@deurell)

    What file would write this in?

    Plugin Author Till Krüss

    (@tillkruess)

    That snippet is just an example, you’ll need to adjust it to your site. I’d recommend you hire a developer to assist you with this, it should only take a few minutes.

    You could use a mu-plugin for it, or just in your theme’s functions.php.

    Thread Starter deurell

    (@deurell)

    I kind of get the code… It’s just the WordPress structure I get a little bit lost in sometimes…

    Thread Starter deurell

    (@deurell)

    But thanks for the input though ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘exclude specific page’ is closed to new replies.