Custom redirection URL for DOI mailings
-
Hi,
Please, read this 2 pages :
https://ww.wp.xz.cn/support/topic/redirect-to-this-url-after-clicking-in-the-email/
https://ww.wp.xz.cn/support/topic/redirect-to-this-url-after-clicking-in-the-email-not-work-2/#post-18076577
The patch was given and still 3 years later, the bug is still here !public static function subscribe( $contact_info ) {
if ( false != $contact_info ) {
$email = $contact_info['email'];
$info = maybe_unserialize( $contact_info['info'] );
$list_id = maybe_unserialize( $contact_info['listIDs'] );
$form_id = $contact_info['frmid'];
$current_form = SIB_Forms::getForm( $form_id );
$unlinkedLists = null;
if( isset( $info['unlinkedLists'] ) )
{
$unlinkedLists = $info['unlinkedLists'];
unset($info['unlinkedLists']);
}
if ( '1' == $current_form['isDopt'] && (isset($contact_info['doi_sent']) && $contact_info['doi_sent'] != 1 ))
{
SIB_API_Manager::send_comfirm_email( $email, 'confirm', $current_form['confirmID'], $info );
SIB_Model_Users::make_doi_sent( $contact_info['email'] );
}
if( $unlinkedLists != null ) {
self::create_subscriber( $email, $list_id, $info, 'subscribe', $unlinkedLists );
}
else {
self::create_subscriber( $email, $list_id, $info, 'subscribe' );
}
}
if ( '' != $current_form['redirectInEmail'] ) {
wp_redirect( $current_form['redirectInEmail'] );
// if ( '' != $contact_info['redirectUrl'] ) {
// wp_redirect( $contact_info['redirectUrl'] );
exit;
}
$type = 'Subscribe';
self::template_subscribe( $type );
exit;
}Thanks for solving this one final time !
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Custom redirection URL for DOI mailings’ is closed to new replies.
