Confirm Password on checkout page not working in woocommerce 3.0.0
-
Hello,
I have update woo-commerce in latest version 3.0.1 Because of which some of my functions have been closed like confirm password fields on check out page. my function is
add_action( ‘woocommerce_checkout_init’, ‘wc_add_confirm_password_checkout’, 10, 1 );
function wc_add_confirm_password_checkout( $checkout ) {
if ( get_option( ‘woocommerce_registration_generate_password’ ) == ‘no’ ) {
$checkout->checkout_fields[‘account’][‘account_password2’] = array(
‘type’ => ‘password’,
‘label’ => __( ‘Verify password’, ‘woocommerce’ ),
‘required’ => true,
‘placeholder’ => _x( ‘Password’, ‘placeholder’, ‘woocommerce’ )
);
}
}How can i correct my function.
- The topic ‘Confirm Password on checkout page not working in woocommerce 3.0.0’ is closed to new replies.