• Hello,
    I would like my popup to have 2 options. One option would redirect the user to an internal page, while the second option redirects to the home page. Both options need to store a cookie for a specified time.

    Application:
    My pop-up is being used to ask users if they would like to donate. If they choose ‘YES’, they are re-directed to the donate page. If they click ‘NO’, they are re-directed to the home page. Either way, I want a cookie stored for 1 day.

    Currently, the pop-up doesn’t have an option to store a cookie for when a user chooses to ‘No’/’Exit’. Can you share code on how I can change that please?

    I’ve been going crazy trying to alter the code to implement this. ANy help is greatly appreciated!

    Thank you very much!
    Brandon

    http://ww.wp.xz.cn/extend/plugins/content-warning-v2/

The topic ‘create cookie for both options’ is closed to new replies.