mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
https://stackoverflow.com/questions/75446693/woocommerce-reorder-account-passwort-field-on-checkout
11 lines
395 B
Text
11 lines
395 B
Text
function move_password_field($checkout_fields){
|
|
// Move Account Password into Billing
|
|
$checkout_fields['billing']['account_password'] = $checkout_fields['account']['account_password'];
|
|
|
|
// Remove Password from Billing
|
|
unset($checkout_fields['account']['account_password']);
|
|
|
|
return $checkout_fields;
|
|
}
|
|
|
|
add_filter('woocommerce_checkout_fields', 'move_password_field', 999);
|