Skip to content

Commit

Permalink
woocommerce の項目を減らす
Browse files Browse the repository at this point in the history
購入しやすいように項目を減らす
  • Loading branch information
toiee-kameda committed Nov 30, 2020
1 parent a9cbd39 commit 542d662
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions includes/woocommerce-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 542d662

Please sign in to comment.