Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- })(window,document,'FS','script','user');
- <?php if (is_user_logged_in()) { ?>
- var wpEmail = "<?php $current_user = wp_get_current_user(); echo $current_user->user_email; ?>";
- var count = <?php echo wc_get_customer_order_count(get_current_user_id()); ?>;
- FS.identify(wpEmail, { "displayName": wpEmail,
- "email": wpEmail,
- "orders_int": count });
- <?php } ?>
- </script>
Add Comment
Please, Sign In to add comment