Other information related to the cookie-notice

Added in WP Full Picture 3.3.0

How to trigger JS functions after users agree/decline cookies

When a visitor clicks any of the “accept / decline” buttons in the cookie notice, WP Full Picture sends a custom JavaScript event. You can use this event to trigger any other JS scripts.


document.addEventListener('fupi_popup_closed', function (e) {
	console.log(e.detail); // e.details holds information what button was clicked