How to get user contact info

It sounds like you’re after the get_userdata() function. As a basic example, you could retrieve a users email like this: <?php if ( $user_id ) { $user = get_userdata($user_id); echo ‘Users Email is: ‘ . $user->user_email; } ?>

Create users from frontend without password

it’s right here in the codex. This is example code, showing how a new user is created: $user_id = username_exists( $user_name ); if ( !$user_id and email_exists($user_email) == false ) { $random_password = wp_generate_password( $length=12, $include_standard_special_chars=false ); $user_id = wp_create_user( $user_name, $random_password, $user_email ); } else { $random_password = __(‘User already exists. Password inherited.’); } … Read more

New User Registration email

In the admin interface under Settings > General there is a field named E-mail Address. Unless you have a plugin managing your user registration separately, this should be the default email address for registration confirmations.

Shopping plugin with user groups [closed]

You don’t say if you are setting up a new e-commerce site or a trying to change an existing one. If you are setting up a new site from scratch … then WooCommerce has a premium plugin called Dynamic Pricing which can create different pricing for different types of users.

Problem with update_user_meta() meta_value

I fixed it doing like below: $meta_value = //data from an API (e.g.: 19, 34, 1290 etc) $meta_value_string = “”. $meta_value; $user_id = wp_insert_user( $new_user_data ); update_user_meta( $user_id, ‘my_meta_key’, $meta_value_string ); Now it works fine.

WordPress C# User Login

In short you want to mach your password with real hash code right. $user = get_user_by( ‘login’, $username ); if ( $user && wp_check_password( ‘123456’, $user->data->user_pass, $user->ID) ) echo “password Matched”; else echo “Not matched”;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)