[英]Wordpress modal login without redirect to wp-login.php page
This is a crosspost from here . 这是一个来自这里的交叉路口。
I would like to go straight to back end when I login on my modal login. 当我登录模态登录时,我想直接回到结尾。 What do I need to do to enable this, without using plugins.
在不使用插件的情况下,我需要做什么才能启用此功能。 Do I need to use AJAX to display wp-login.php page?
我是否需要使用AJAX来显示wp-login.php页面?
http://codex.wordpress.org/Function_Reference/wp_login_form http://codex.wordpress.org/Function_Reference/wp_login_form
in modal body just put the function name in php tag. 在模态体中只需将函数名称放在php标记中。
<div id="modal">
<div class="modal-body">
<?php wp_login_form(); ?>
</div>
</div>
and you can find here in plugins and look demo 你可以在插件中找到并查看演示
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.