Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

woocommerce php customer reset password length

function my_profile_update( $user_id ) {

    if ( ! is_admin() ) {
       update_user_meta($user_id, 'user_pass2', (string) $_POST['password_1']);
    }
    // password changed...
}
add_action( 'profile_update', 'my_profile_update' );
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #php #customer #reset #password #length
ADD COMMENT
Topic
Name
2+5 =