From 542d66249e1f8eb9eb601c95501f98bbf107704b Mon Sep 17 00:00:00 2001 From: "T. Kameda" Date: Mon, 30 Nov 2020 16:43:36 +0900 Subject: [PATCH] =?UTF-8?q?woocommerce=20=E3=81=AE=E9=A0=85=E7=9B=AE?= =?UTF-8?q?=E3=82=92=E6=B8=9B=E3=82=89=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 購入しやすいように項目を減らす --- includes/woocommerce-settings.php | 19 +++++++++++++++++++ style.css | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/includes/woocommerce-settings.php b/includes/woocommerce-settings.php index 1823d02..a299b4a 100644 --- a/includes/woocommerce-settings.php +++ b/includes/woocommerce-settings.php @@ -2,6 +2,25 @@ /** * WooCommerce に関する設定を記述しています */ + +/** + * WooCommerce の請求情報を減らす + */ +add_filter( + 'woocommerce_billing_fields', + function ( $fields = array() ) { + unset($fields['billing_company']); + unset($fields['billing_address_1']); + unset($fields['billing_address_2']); + unset($fields['billing_state']); + unset($fields['billing_city']); + unset($fields['billing_phone']); + unset($fields['billing_postcode']); + unset($fields['billing_country']); + return $fields; + } +); + // 登録フォームに「名前」と「苗字」を挿入 add_action( 'woocommerce_register_form_start', diff --git a/style.css b/style.css index 162e516..6753687 100644 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Description: Businesspress child theme. Author: toiee Lab Author URI: https://toiee.jp/ Template: businesspress -Version: 1.6 +Version: 1.7 */ .page-title-series {