skip to Main Content

WordPress – Add a metadata to user

I'm creating a user and I want to add a metadata "Age" numeric. The problem is that when I add it, it adds it as string $user_id = wp_insert_user( array( 'user_login' => 'janedoe', 'user_pass' => 'passwordgoeshere', )); add_user_meta($user_id, 'Age' ,…

VIEW QUESTION
Back To Top
Search