: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
jQuery(document).ready(function ($) {
jQuery('.where-is-my-id-inside-lb').on('click', function (e) {
$('#oopsiewrongid').modal('hide');
$('#whereIsMyId').modal();
function show_loader(el) {
$(el).find('.text-content').hide();
$(el).find('.loader').show();
function hide_loader(el) {
$(el).find('.text-content').show();
$(el).find('.loader').hide();
jQuery('.pp_signup_btn').on('click', function (e) {
var email = $('#poptinRegisterEmail').val();
$('#oopsiewrongemailid').fadeIn(500);
$('#oopsiewrongemailid').delay(2500).fadeOut();
$('#poptinRegisterEmail')
$(this).removeClass('error').dequeue();
data: jQuery('#registration_form').serialize(),
success: function (data) {
if (data.success == true) {
jQuery('.ppaccountmanager').fadeOut(300);
jQuery('#customersWrap').fadeOut(300);
jQuery('.poptinLogged').fadeIn(300);
jQuery('.poptinLoggedBg').fadeIn(300);
$('.goto_dashboard_button_pp_updatable').attr(
'admin.php?page=Poptin&poptin_logmein=true&after_registration=wordpress'
// window.open("admin.php?page=Poptin&poptin_logmein=true&after_registration=wordpress","_blank");
data.message === 'Registration failed. User already registered.'
jQuery('#lookfamiliar').modal();
} else if ((data.message = 'The email has already been taken.')) {
jQuery('#lookfamiliar').modal();
swal('Error', data.message, 'error');
jQuery('.goto_dashboard_button_pp_updatable').on('click', function () {
href = link.attr('href');
link.attr('href', href.replace('&after_registration=wordpress', ''));
jQuery('.dashboard_link').on('click', function () {
href = $(this).data('target');
window.open(href, '_blank');
jQuery(document).on('click', '.deactivate-poptin-confirm-yes', function () {
data: { nonce: $('#ppFormIdDeactivate').val() }
status = JSON.parse(status);
if (status.success == true) {
jQuery('#makingsure').modal('hide');
jQuery('#byebyeModal').modal('show');
$('.poptinLogged').hide();
$('.poptinLoggedBg').hide();
$('.ppaccountmanager').fadeIn('slow');
$('#customersWrap').fadeIn('slow');
$('.popotinLogin').show();
$('.popotinRegister').hide();
jQuery('.pplogout').on('click', function (e) {
jQuery('#makingsure').modal('show');
jQuery('.poptinWalkthroughVideoTrigger').on('click', function (e) {
jQuery('#poptinExplanatoryVideo').modal('show');
$('.ppLogin').on('click', function (e) {
$('.popotinLogin').fadeIn('slow');
$('.popotinRegister').hide();
$('#poptinUserId').focus();
$('.ppRegister').on('click', function (e) {
$('.popotinRegister').fadeIn('slow');
$('.popotinLogin').hide();
$('#poptinRegisterEmail').focus();
$('.ppFormLogin').on('submit', function (e) {
var id = $('.ppFormLogin input[type="text"]').val();
// $('#oopsiewrongid').modal('show');
$('#oopsiewrongid').fadeIn(500);
$('#oopsiewrongid').delay(2500).fadeOut();
$(this).removeClass('error').dequeue();
data: { poptin_id: id, nonce: $('#ppFormIdRegister').val() },
status = JSON.parse(status);
if (status.success == true) {
jQuery('.poptinLogged').fadeIn('slow');
jQuery('.poptinLoggedBg').fadeIn('slow');
jQuery('#customersWrap').hide();
jQuery('.ppaccountmanager').hide();
jQuery('.popotinLogin').hide();
jQuery('.popotinRegister').hide();
$('.goto_dashboard_button_pp_updatable').attr(
'https://app.popt.in/login'
$('input').on('change', function (e) {
let value = e.target.value;
$(this).addClass('active');
$(this).removeClass('active');
function isEmail(email) {
var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
return regex.test(email);