Questions tagged [user-registration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
14 views

Set user password after creating user

I have the following code: function create_account(){ //You may need some data validation here $fname = ( isset($_POST['billing_first_name']) ? $_POST['billing_first_name'] : '' ); $lname ...
1
vote
0answers
8 views

WP MU Register User across all blogs

How to register user on WM MU install for all blogs at once, but not to a limited blog which was triggered during registration? Thank you.
1
vote
0answers
29 views

Create a unique username on wordpress registration

On registration my users are not able to choose username, so the email = username. I want to change this, and i try to create a unique username on registration. // DEBUG function uuid() { return ...
0
votes
0answers
32 views

Create user with ACF custom fields via REST API

I'm unable to create a User via the WordPress REST API when I include custom fields within the payload. I have 2 custom fields on the User object, created with ACF: phone_number (string) state (...
0
votes
1answer
9 views

Link with password is not sent to the new user

We are having the issue with email - is not sent when new user registers. The password link is not emailed to the user. We are using g suite and never had any issues on wp If anyone can help that ...
1
vote
0answers
37 views

Backend user creation form with additional language field

I need to create users in the backend which currently works. After adding the user, he gets an email currently in english. I want to make this dynamically to the given language in the backend user ...
0
votes
0answers
12 views

add image uploader field for users without plugin

i have made signup form in custom template. I'm trying to allow users to upload a profile image on their user profile editing page, thanks in advance. kindly help with code step by step. i have ...
0
votes
0answers
17 views

What would cause wp_insert_user role to work sporadically?

I use the following code in a frontend form. About 10% of the time, the new user is created as a 'subscriber'. What would cause this erratic behavior? $new_user_id = wp_insert_user(array( 'role' =&...
0
votes
0answers
15 views

Change reset password hook?

When users create an account they get an email to set their password. Currently, it goes to the default https://example.com/wp-login.php?action=rp&key=hFRwAiQxbz634rmjHuWgU&login=username ...
1
vote
1answer
68 views

Email confirmation in user registration form without a plugin

I have created an HTML registration form for users in a custom template. Now I want to send an email confirmation link in registered emails from which registered users can login. Below is my code. ...
0
votes
0answers
14 views

How do I code in functions.php of my theme the ability to create users in each multi-site after registration validation

I have a main site and two sub-sites I want to upon registration validation (after the email) create the user on each sub-site. I tried adding this code to functions.php but it does not work. There ...
0
votes
1answer
18 views

Generate long hashed user ID

Can I replace the default user ID generation on registration to a more advanced one? Similar to SHA-256 et al ? I'm working on prototyping a service with possibility of massive amounts of signups and ...
1
vote
0answers
18 views

Users and Multisite - Removing all user capabilities

Quick summary: I basically want to know if it would cause any issues if I remove user capabilities. When users register on a multisite, they get their 'capabilities' assigned to the site they ...
0
votes
1answer
27 views

How can I fetch user registration age

How can I fetch the user registration age? Like for example user A registered 7 days ago, user B 10 days ago etc. In my current project, I have this requirement where there are set of tutorial videos ...
0
votes
1answer
22 views

Enter user registration information in the database

can you tell me what's wrong with this code? I simply have to enter those data in the user database on Wordpress. Here is my code: // Inserisce utente nel DB $user_data = [ 'user_login' => $...
0
votes
0answers
39 views

Issues adding Recaptcha v3 to Wordpress Registration

I'm having a problem with adding Recaptcha v3 to my WP registration form. The recaptcha seems to be registered and working and communicating with Google's api. I'm running into problems when I try to ...
0
votes
1answer
58 views

add_action doesn't work for my function

I'm trying to build a function which run when a member is registering on my site. I am building an extranet using the Simple LDAP login plugin to use my LDAP directory so that users connect on the ...
-1
votes
1answer
17 views

How can I add Author's phone number to wp profile and make it appear in wp-admin/edit.php columns

How can I add Author's phone number to wp profile and make it appear in wp-admin/edit.php columns? Someone pls help me out with code or plugins link. Thank you.
0
votes
1answer
20 views

I want to give every new registering user a unique key apart from password field for external use

I want to give every new registering user a unique key apart from the password field and other fields in the WordPress database table for external use. I want to use this key for identification of ...
2
votes
0answers
50 views

Wordpress registration and contact form 7 [closed]

A very nice man shared this code to add to a theme's function file that will convert a cf7 form into a WORDPRESS registration form. The code that a man shared on moot point works for one form by ...
0
votes
1answer
42 views

Is it possible to remove the password field in the registration page in woocommerce?

I'm trying to create a custom registration for the customer in the woocommerce registration page. Basically, I want the users to register with their their basic details, without their password. Once ...
0
votes
0answers
13 views

Register a user only to the root blog - WP Multisite

I have code to register a user from one of the blogs in WP Multi site: if($userId = wp_create_user($email, $pass, $email)){ var_dump(get_user_by_email($email)); } The problem is that I want them ...
0
votes
0answers
16 views

Custom user registration with custom url and class/function

I need to create a class or a function to validate then save a user registration with function wp_insert_user(). For ajax validation purposes how can I create a separate URL and access the validation/...
0
votes
0answers
15 views

Code custom redirect url after woocommerce registration

I'm trying the code for redirect url after registration, but its not working. I tried other options, I used the plugin, but it's same not work. I use registration form in "my_account" page. Could ...
0
votes
0answers
29 views

Change user role on registration if checkbox on form is checked

I am using the NRGNetwork theme on a site I am working on. If you click sign up, a registration form drops down. I altered this to include a checkbox that says "Register me a site contributor". I want ...
0
votes
0answers
29 views

Single Sign On (SSO) between two Wordpress websites

Not having much luck finding solutions here, can someone help? I have abc.com, and sub.abc.com Users will create an account on abc.com, but I need users to login with to sub.abc.com after. If users ...
0
votes
4answers
139 views

Auto approve new users if their username is included in a predefined list

I need to have users' registration in my website as Subscribers. Each user will provide a username. I need to have a list that contains a company's usernames and then I need to automatically approve ...
0
votes
1answer
161 views

Custom user registration fields in user_register hook

I am trying to send an email to administrator with user_register action hook and wp_mail() function when a new user registers. I created some custom registration fields and I want send them via e-mail,...
1
vote
2answers
41 views

How do I add a prefix when a user registers

I am looking for any built in function that when I add a user or a user wants to register, the username will be automatically prepended with a predefined text. For example, if the user registers with ...
0
votes
1answer
23 views

user activation email doesn't work

I have a question about the Gravity forms Plugin ... I'm going to create a registration form And for that, I used the description of the link below. https://gravitywiz.com/customizing-the-user-...
0
votes
2answers
92 views

How to turn off email you receive when registered?

My client wants to turn off the email you receive when register.
0
votes
1answer
59 views

Adding additional roles on registration

I'm trying to add an additional role for a user when they register if they register as a specific role. Here is my function: function add_secondary_role( $user_id ) { $current_user = ...
1
vote
0answers
24 views

How can I save unique user data on my site? [closed]

I am trying to find a way to allow registered users on my site create lists of data and save them. I'm having trouble finding a way to save the list they create to the database of my site. I am ...
0
votes
1answer
25 views

Problem in plugin debuging in wordpress

I want to save extra user fields in custom table after user register. In my plugin I added user_register hook and I am checking this code while user register but I cannot find any errors and cannot ...
0
votes
0answers
34 views

lostpassword_post hook redirect to core login page

For the site: www.akkade.be I use the plugin user-registration by wpEverest, login & registering works fine but the lost password form just redirects me to the core login page the lost password ...
1
vote
1answer
46 views

Which hook should I use to capture $_POST('password') via profile update and password reset

I need to rehash the password which the user entered during Wordpress registration (I use WooCommerce) I'm successfully able to do this with the following: add_action( 'user_register', '...
2
votes
0answers
34 views

How can I find users that didn't set a password?

Is it possible to find (and bulk delete) users that registered on my WordPress site but never set a password over their confirmation email?
0
votes
1answer
84 views

Registration form AJAX check for existing username (simple version)

I know they are already many questions related to this topic but I was looking for a simple way to make an ajax check for an existing username. So basically I have the HTML form and two functions (in ...
0
votes
0answers
19 views

How to stop users beign registered on checkout page if billing address is same as other user?

I need help with woocommerce billing address. First: I need to stop user from being registered on checkout page if billing address is same as other user. Second If user is already registered, then ...
1
vote
0answers
17 views

Is the Multi site functionality a viable option for Country and Language targeting?

I am working on an eCommerce website, which only has the TLD Extension .com at present. The website owner is keen on looking to expand the website, as to reach other Countries and Languages. Since ...
0
votes
1answer
20 views

How do I create a new post upon registration with the users first and last name as title

I've been working at this for some time and for the life of me I cannot figure this out. Here is my code as of now. add_action('user_register','create_new_user_profile', 999); function ...
0
votes
0answers
7 views

Can you carry over add-on settings when duplicating a Gravity Form?

So I know when you duplicate a gravity form it carries over the settings that are there be default like notification and confirmations. But I was wondering if its possible carry over add-on settings ...
1
vote
1answer
183 views

How do I make WordPress send an email to the user when his account gets approved (manual by me)

I was wondering if I could make it so that if I approve a user account via "Users" UI that an automatic email is sent to the user saying something like "Hey, your account on www.website.com has been ...
0
votes
0answers
56 views

get_user_by() sometimes returns false, but the user exists

I am using child theme and I am replacing the base action for registering a user in my child theme: add_action( 'wp_ajax_nopriv_parent_theme_ajax_register_form', '...
0
votes
2answers
297 views

Force display name to nickname wp

I wondered if anyone has a solution for the following scenario i would like to force when a user registers Display name publicly to Nickname by default instead of first name and last name which is ...
0
votes
2answers
92 views

Disable emails for new user registration

I want to disable the default email that is send when user is registered. I am using this plugin for email verification User Verification By PickPlugins, which sends an email with confirmation link, ...
0
votes
1answer
40 views

Searchable Semi Random Number Generator on User Profiles

I'd like it so that when a user creates a profile, there is a custom form that states "ID Number", which is then semirandomly generated. So, for example, if Joe creates an account, he'll be asked a ...
0
votes
1answer
91 views

wp_insert_user if user exists

I have been at this for almost two hours, i'm sure i'm close, but can't find the nudge to make it work. I built a module from scratch to import users from a csv file, the user creation is working fine,...
0
votes
1answer
84 views

Activate User account for Sub Site broken

When I add a new user to a WP Multisite sub-site, an email is sent out asking the user to click a link to activate. The link looks like this: https://website.com/subsite/wp-activate.php?key=XXXXXXXXX ...
1
vote
1answer
284 views

What's wrong with Customizing new user notification email by add_filter?

When a new user signs up, the confirmation email is received and this is what it says: Username: testuser To set your password, visit the following address: But I want to customize it, so I added ...