smanusspain
Forum Replies Created
-
I am having a similar problem. The banner had been working fine in conjunction with a Popup Builder pop-up. Today, I made a number of changes to our settings (added cookies to the cookie list, created a cookie policy page, added settings and read more buttons) and now the banner will not auto-appear when the site is loaded. I have the Show Again tab enabled and if the user presses this tab, then the banner appears. However, even though Accept on Scroll is enabled, the banner remains unless the user presses Accept.
Well, sort of. I have managed to get my function called using this hook:
add_action(‘um_registration_complete’, ‘createNewUser’, 10, 2); //call from Ultimate Member for a new user
(my function is ‘createNewUser’).
As I mentioned above, I was getting an Invalid Nonce error which I was able to remove with this:
add_filter( ‘um_register_allow_nonce_verification’, ‘turn_off_nonce’, 10, 1 ); // turn off nonce verification with UM – trying to solve crash
function turn_off_nonce($allow_nonce) {
$allow_nonce = false;
return $allow_nonce;
}I am still having a problem, however, with UM finishing the registration after the return from my function. It may be a conflict with another plugin or my theme. You may not have the problem. Let me know how it goes!
By the way, I saw this topic addressed a couple of years ago and the following link was suggested:
https://docs.ultimatemember.com/article/230-invalid-nonce-in-registration-form
but the article has disappeared.