【发布时间】:2021-04-22 09:42:48
【问题描述】:
我想在billing_email 字段输入框下方添加一行文本。详情如下。
原始 HTML 输出。
<p class="form-row form-row-wide validate-required validate-email" id="billing_email_field" data-priority="110">
<label for="billing_email" class="">Email address <abbr class="required" title="required">*</abbr></label>
<span class="woocommerce-input-wrapper">
<input type="email" class="input-text " name="billing_email" id="billing_email" placeholder="" value="" autocomplete="email username">
</span>
</p>
修改后的 HTML 输出。
<p class="form-row form-row-wide validate-required validate-email" id="billing_email_field" data-priority="110">
<label for="billing_email" class="">Email address <abbr class="required" title="required">*</abbr></label>
<span class="woocommerce-input-wrapper">
<input type="email" class="input-text " name="billing_email" id="billing_email" placeholder="" value="" autocomplete="email username">
</span>
<br>
<span>Please enter the correct email address so that you can receive our emails.</span>
</p>
我尝试查看WooCommerce help documentation - Customizing checkout fields using actions and filters,但对我来说太难了,所以我在这里寻求帮助。
任何帮助将不胜感激!
【问题讨论】:
标签: php wordpress woocommerce checkout