WooCommerce:更改注册页面上的表单标签 [英] WooCommerce: change form labels on registration page
本文介绍了WooCommerce:更改注册页面上的表单标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在Hookcommarce重新定价页面(/my-account/)上找到Hook来编辑表单标签,但是没有运气.我想添加到functions.php,将用户名标签更改为什么. 用户名 到: 用户名更多文字
I'm trying to find the Hook to edit the form label on woocommarce restration page (/my-account/) without luck. I want to add to functions.php what to change username label to. Username to: Username more text
我不想编辑模板文件.任何想法该怎么办?
I do not want to edit template files. Any ide what to do?
推荐答案
不幸的是,登录表单标签不可过滤.您需要 override 中的my-account/form-login.php
模板您的主题并在那里进行编辑.
Unfortunately the login form labels aren't filterable. You will need to override the my-account/form-login.php
template in your theme and make your edits there.
这篇关于WooCommerce:更改注册页面上的表单标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文