Javascript ¿;如何在登录后重定向到同一页面?
我正在为一家公司重新设计一个页面,并创建了一个用户必须登录的页面。上面写着:在这里用你的用户名和密码注册成为会员(西班牙语) 但是显示链接的链接隐藏在WordPress代码段中,该代码段使用以下脚本进行登录:Javascript ¿;如何在登录后重定向到同一页面?,javascript,wordpress,authentication,logging,code-snippets,Javascript,Wordpress,Authentication,Logging,Code Snippets,我正在为一家公司重新设计一个页面,并创建了一个用户必须登录的页面。上面写着:在这里用你的用户名和密码注册成为会员(西班牙语) 但是显示链接的链接隐藏在WordPress代码段中,该代码段使用以下脚本进行登录: add_shortcode( 'inscripcion', 'bp_contenido_inscripcion' ); function bp_contenido_inscripcion( $atts, $content = null ) { if ( is_user_logged
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>';}
add_shortcode('inscripcion','bp_contentido_inscripcion');
函数bp\u contenido\u inscripcion($atts,$content=null){
if(is_user_logged_in()&&!is_null($content)&!is_feed())
返回$content;
返回“Inscríbite como afiliado haciendo login con tu usurio y contraseña
”;”
有没有一种方法可以让我登录但保持在同一页面上