¿How do i redirect to the same page affter login?

陌路散爱 提交于 2021-01-29 06:53:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!