@italoc – “Passthrough” capability was added in v1.3 and we use it in several extensions such as Terms & Conditions and Age Verification.
Instead of opening the popup with JS you just add the correct popmake-# class to your link. Then add JS to the close event like this.
jQuery('#popmake-123')
.on('popmakeAfterClose', function () {
jQuery(this).addClass('preventOpen').
jQuery.fn.popmake.last_open_trigger.click();
});
Essentially what that says is prevent the opening of the popup the next time and immediately click the last trigger or the link you originally clicked.
Haven’t tested in this capacity but let me know how it works.
Thread Starter
italoc
(@italoc)
That does nothing, I put the script in footer.php. The popup just opens and closes just as it does by default.
chrome dev tools returns
“Uncaught TypeError: Cannot read property ‘fn’ of undefined”
on jQuery.fn.popmake.last_open_trigger.click();
I can e-mail link, but site is not public yet.
@italoc – sure you can email support @ wppopupmaker.com
@italoc – marking this resolved since we have moved it to email support. Also for others the final decision was to use the Terms & Conditions popups extension as it provided exactly the functionality that was needed.