redirect to the same page affter login
-
I am redesigning a page for a company and an event has been created where the user has to log in. Where it says: Register as an affiliate by logging in with your username and password here (in Spanish)
But the link that shows the link is hidden with a WordPress snippet with the following script to do the login:
add_shortcode( 'inscripcion', 'bp_contenido_inscripcion' ); function bp_contenido_inscripcion( $atts, $content = null ) { if ( is_user_logged_in() && !is_null( $content ) && !is_feed() ) return $content; return '<p class="cuadro-inscripcion">Inscríbite como afiliado haciendo login con tu usuario y contrase?a <a class="link-inscripcion" href="'.wp_login_url().'">aquí</a> </p>';}
?Is there a way that I can log in but keep it on the same page?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘redirect to the same page affter login’ is closed to new replies.