• Imagine:
    As soon as someone clicks on a link, a cookie should be saved.
    After the user has clicked on the link and the cookie has been saved, a certain wordpress function should not be executed for the next days.

    How do I realise that?

    Best regards,
    Kevin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Well, a portion would have to be executed each time to check the cookie date and only do something meaningful if so many days have passed, else just return without doing anything else.

    You have to run code to decide if other code shouldn’t run.

    Thread Starter kevinweber

    (@kevinweber)

    Okay, thanks!
    Could you please give/recommend me a piece of code?

    Best wishes,
    Kevin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Don't run function if specific cookie exists’ is closed to new replies.