问题
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?
来源:https://stackoverflow.com/questions/63834836/how-do-i-redirect-to-the-same-page-affter-login