$scriptParams = array(
‘postID’ => $postID,
‘url’ => get_bloginfo(‘url’).”/wp-admin/admin-ajax.php”,
‘exit_url’ => get_option(‘wpcwv2_msg_exit_url’),
‘enter_url’ => $enter_url,
‘cwv2DataNonce’ => wp_create_nonce(‘wpcwv2_ajax_data_nonce’)
Did I do it right this way? Or is it the one below?
$scriptParams = array(
‘postID’ => $postID,
‘url’ => get_bloginfo(‘url’).”/wp-admin/admin-ajax.php”,
‘exit_url’ => get_option(‘wpcwv2_msg_exit_url’),
‘enter_url’ => (empty($enter_url) ? ‘https://www.google.com’ : $enter_url),
‘cwv2DataNonce’ => wp_create_nonce(‘wpcwv2_ajax_data_nonce’)
I can’t seem to get it working no matter which code I tried. I guess I’ll just wait for an update.