Popup closes instantly
-
Site URL: http://amerk.dk/debat/
Hi …
I am trying to create a “Create new topic”-button with a click pop up trigger for users not logged. (The green button at the top “Start ny debat” with a + icon).
However, I’m having problems cuz at the moment it opens up the popup and closes instantly and then goes to the button URL…
Could you guys help me how to fix this? The goal is to create a login/register popup for users not logged in trying to create a new topic…
Below is the snippet I’ve used to create the popup for users not logged in:
function user_logged_in_trigger( $is_loadable, $popup_id ) {
if ( is_user_logged_in() && $popup_id == ‘31876’ ) {
$is_loadable = false;
}return $is_loadable;
}
add_filter( ‘popmake_popup_is_loadable’, ‘user_logged_in_trigger’, 1000, 4 );Thanks in advance!
The topic ‘Popup closes instantly’ is closed to new replies.