mercredi 1 août 2018

php else to open link

I need to open link instead of return $error; on bellow code:

else {
                    $error->add( 'sms_code_enter', sprintf( __( '<strong>Cont creat dar nevalidat. <a href="#" class="sms-code-field">Click Aici</a> pentru a introduce codul primit pe telefon.</strong>', 'wedevs' ) ) );

                    return $error;
                }

I tried with this code but it does nothing:

 else {
                    $error->add( 'sms_code_enter', sprintf( __( '<strong>Cont creat dar nevalidat. <a href="#" class="sms-code-field">Click Aici</a> pentru a introduce codul primit pe telefon.</strong>', 'wedevs' ) ) );

                   header('Location: http://destination.com');
                }

Aucun commentaire:

Enregistrer un commentaire