You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何移除WooCommerce订单完成页面的账单地址

在WooCommerce中移除订单完成页的账单地址

你可以通过在主题的functions.php文件中添加以下代码来移除订单完成(Thankyou)页面上的账单地址:

// 移除WooCommerce订单完成页的账单地址
add_action( 'wp', 'remove_thankyou_billing_address' );
function remove_thankyou_billing_address() {
    remove_action( 'woocommerce_thankyou_billing_address', 'woocommerce_order_details_billing_address', 10 );
}

注意事项:

  • 建议修改子主题的functions.php文件,这样主题更新时不会丢失自定义代码;
  • 如果你不想修改主题文件,也可以使用自定义代码插件(如Code Snippets)来添加这段代码,更安全便捷。

内容的提问来源于stack exchange,提问作者mastahlb

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 20:58:09