Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################################################################
- ### This snippet will hide the user_email for guest users and will use the dummy user email ###
- ### user email instead when using No-user booking mode ###
- ###############################################################################################
- 1. go to your theme directory at wp-content > themes > Your Theme Name
- 2. edit footer.php and then add this jquery snippet
- <?php if ( !is_user_logged_in() ){ ?>
- <script>
- jQuery(document).ready( function($){
- jQuery('#user_email').val("xx@xyz.com");
- jQuery('#user_email').css('display','none');
- jQuery('.input-user_email').css('display','none');
- });
- </script>
- <?php } ?>
- Notes:
- - user_email is the user email field name under Events > Forms Editor > 'Booking Form - General Information'
- - ALL CONFIRMATION EMAIL OR BOOKING EMAILS WILL BE SEND TO THE DUMMY USER SINCE WE USED IT AS DEFAULT USER_EMAIL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement