redirect to a specific page on “Decline”?

Is there any way to redirect the user to a specific page when clicking “Decline” or “Close”?

The reason for this: GDPR requires me to activate the “deny” option, but someone who denies consent, should be redirected to a page with information on how he/she can get in touch without consent.

The page I need help with: [log in to see the link]


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer