Note This article is for the premium version of WP Optin Wheel.

If you’re using the wheel on a device in a physical store, you may want to reset the wheel when someone has played. That way, the next player can use your device to play the wheel. This can be done by refreshing the page when “I’m done playing” is clicked. To do so, add the following Javascript code to your page:

jQuery(document).ready(function(){
    jQuery(document).on('wof:init',function(){
            jQuery('.wof-wheel').off('click','.wof-btn-done');
            jQuery('.wof-wheel').off('click','.wof-close');
            jQuery('.wof-wheel').on('click','.wof-btn-done',function(e){
                e.preventDefault();
                location.reload();
            });
    });
});