[英]Add WooCommerce registration form to any page/template
I want to add the user registration form to several pages in WordPress. 我想将用户注册表单添加到WordPress的多个页面中。 Until now, I couldn't find any solution for that.
到目前为止,我还没有找到任何解决方案。
I tried to copy the form from the WooCommerce login/registration template. 我试图从WooCommerce登录/注册模板复制表格。 Unfortunately without success.
不幸的是没有成功。
Is there any way to do this without a plugin? 没有插件,有没有办法做到这一点?
Maybe I made a mistake at my first try to solve that problem. 也许我第一次尝试解决该问题时就犯了一个错误。
You could copy the form from the file /wp-content/plugins/woocommerce/templates/myaccount/form-login.php and use it everywhere on the site. 您可以从文件/wp-content/plugins/woocommerce/templates/myaccount/form-login.php复制该表单,然后在网站上的任何地方使用它。
Works fine ;) 工作正常 ;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.