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 {