Questions tagged [user-registration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
15
votes
5answers
18k views

Is it possible to remove username field from the registration page? If so, how?

Is it possible to remove the username field from the registration page? I want the users to enter only their email and password. A new user should be created based on these two parameters only. Is ...
12
votes
9answers
24k views

Adding fields to the “Add New User” screen in the dashboard

I'd like to add the field "Company Name" to the add new user page in the admin panel. I've done quite a bit of searching and have been unable to find details on how to do this. I can easily add info ...
12
votes
2answers
6k views

How to allow an user role to create a new user under a role which lower than his level only?

I have three extra roles in my site. Doctor Receptionist Guest those roles are added by following code: * adding Doctor role */ $doctor_role = add_role('Doctor', __('Doctor'), array('read'=>'...
12
votes
1answer
727 views

How to prefill WordPress registration with social details

I created custom registration process in WordPress with a lot of extra fields like first name, last name etc. I would like to make integration with Facebook/LinkedIn so first name, last name, email, ...
10
votes
3answers
8k views

Whats the best way to share user data across multiple Wordpress websites?

First of all, Multisite isn't what I'm looking for. I have 5 websites using Wordpress all on separate domains that I would like to enable user accounts for. I need user data to be shared across the ...
9
votes
3answers
21k views

Send user activation email when programmatically creating user

I wondered if someone here might be able to help. Basically, I've created a custom registration form that when validated, inserts a user to the user table. function _new_user($data) { // ...
9
votes
1answer
12k views

users table - user_name vs. nicename

Can someone explain the differences or different uses of the user_name and user_nicename fields in the users table? They seem to be, and behave the same. I found a bunch of posts in web searches, ...
8
votes
2answers
5k views

How can I un-reserve a pending username registration?

I am setting up a new WordPress Multisite instance, and am still working out some kinks in the stack. Most significantly at the moment, user registration emails are not being delivered for some reason....
7
votes
3answers
9k views

Google Apps login in wordpress

I manage a google apps domain with plenty of users; I would like to join Google apps with a Wordpress based intranet app we're creating. Which level of integration could I expect to achieve? Our ...
7
votes
2answers
2k views

How can I be certain that a user has verified their email after registration?

I'm working on a plugin that uses WordPress as the Single Sign On provider for another application. I need to be certain that the user has verified their email address by replying to the email sent ...
6
votes
1answer
425 views

Problem with Hebrew characters in username

I wrote a plugin to enable hebrew characters in usernames. This is the full code: add_filter ('sanitize_user', 'hu_sanitize_user', 10, 3); //Overrides the Wordpress sanitize_user filter to allow ...
5
votes
5answers
8k views

Stop spam users from registering without disabling user registration?

My site http://remotejobs.io currently uses a plugin to power the job board and user supplied resumes. The plugin creates users from it's own interface, so there is not typical user creation method on ...
5
votes
1answer
4k views

Create posts on user registration

How can I create let say 3 posts after the user finish the registration ? The ideal outcome would be to create 3 posts using the user as the author of the posts and with some pre-defined values. (...
5
votes
2answers
16k views

Display user registration date

I want to show user registration date like Member since: 15,dec 2012. I have a code <?php echo date("M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?> but it ...
5
votes
2answers
12k views

How to display custom user meta from registration in backend?

I'm considering using the hooks for the WordPress registration form to add some custom fields: https://codex.wordpress.org/Customizing_the_Registration_Form My question is, if it's even possible, how ...
5
votes
2answers
26k views

Use the user_activation_key for other purposes

I need to know if it is safe to use user_activation_key (from WP_User) for other purpose like email verification (a functionality that I would be creating that would send an email verification first ...
5
votes
2answers
11k views

How do I create a password reset link?

I have the registration workflow set so that my user have to fill out a gravity forms user registration form and then activate their account via a link in an email. The email link sends them to a ...
5
votes
2answers
2k views

Remove email verification when new user register

Please note I'm not posting this question without doing google search, but the problem is every single result I found is either about BuddyPress or WP Multisite, but I have a WP Single installation ...
4
votes
2answers
7k views

How do I create a user using the new JSON api in 4.7?

I formerly had the JSON API and JSON USER API plugins working before 4.7 and I have seen the documentation at the ReST API User reference, https://developer.wordpress.org/rest-api/reference/users/#...
4
votes
1answer
3k views

How to check if the user registration is allowed/active?

I need to run a code snippet if the user registration is allowed, but I can't find a solution. How to do this?
4
votes
2answers
5k views

Can I hook into user registration *before* a user is created?

I want to limit registration based on the domain associated with their email address. I was looking at the user_register action hook, but it fires after the user is already inserted, which, although ...
4
votes
3answers
7k views

Allow Duplicate Email Address for Different Users

I need to be able to have different users share the same email address. (Running a site where parents will be creating accounts for their children who may not have their own email address, so the ...
4
votes
1answer
226 views

Why do generated passwords start/end with spaces?

When new passwords are generated for new users, some users are reporting that the passwords include spaces at the beginning and end of the passwords. Has anyone ran into this before or have any idea ...
4
votes
3answers
814 views

What should I do to make generated avatars different for anonymous comments?

All the comments on my website are anonymous and without registration. To post a comment you have to fill the fields name (not obligatorily) and the text of your comment (obligatorily). I have the ...
4
votes
1answer
5k views

Email confirmation on registration

I have set up the registration form using this chunk of code: wp_create_user($username, $password, $email); Note that i have did all kinds of validation before use this code. The registration is ...
4
votes
1answer
64 views

Delete a specific category when deleting a user

I'm using the following function to create a portfolio category named "tips_username" when a user registers on my website. add_action('user_register', 'auto_create_traveltip_category'); function ...
4
votes
1answer
600 views

How to prevent spam users registering even with registration disabled

I have Wordpress Multisite with bbPress. I've disabled new user registration from network settings but I still seem to get new registrations regardless. I've read that bbPress is most likely the ...
4
votes
4answers
8k views

Custom registration form page/template

I am trying to create a registration page on my site to allow visitors to register on the site and have access to special contents. I installed Cimy User Extra Fields to add extra fields to wp-signup....
4
votes
1answer
568 views

User registration problem in WordPress

I am trying to make a user registration form in my site's side bar. Users are able to register but instead of getting a success message, WordPress usually redirect them to 404 page. Below is my form: ...
4
votes
1answer
8k views

I want to disable E-Mail verifcation / activation when a user signs up for my Wordpress site

when a new user registers an activation link is sent to his e-mail account. I want the user to enter his username, email address and password and straight register and be logged in without ...
3
votes
2answers
9k views

What's the difference between wp_insert_user() and wp_create_user()

I know the former allows additional parameters, so you can more user info, but other then that, why do both exist? The specific reason I want to know is that wp_insert_user() is happening REALLY ...
3
votes
2answers
6k views

Insert “New User” and update/set meta data at once

The wordpress function wp_insert_user doesn't seem to set (overwrite) the input I give. (documentation shows you can't) Trying to use: wp_insert_user using the returned userID also doesn't work. ...
3
votes
4answers
4k views

How to force buddypress users to complete profile after registration? [closed]

Seems logical for any other network, not for buddypress though :( We all know the extended user profiles in buddypress - problem is, even though some fields are marked as required, that "required" ...
3
votes
1answer
4k views

How to loop through each user id?

The functions that I am aware of: WP_User and wp_get_current_user seem to only get the user object of the current user. As an administrator, if I want to display certain profile information in a ...
3
votes
2answers
6k views

Best way to create a user programatically

I want to create a user via a standalone script. I want an activation email to be sent out, in the same way that it is when a user is created from the Add User screen. An email is set out with a link ...
3
votes
2answers
21k views

Custom admin email for new user registration

I've scoured the web for the solution to this small issue, but I keep getting results that tell me how to customise the notification e-mail not the email address. I have the admin email address in ...
3
votes
3answers
43k views

How to have Wordpress send a user confirmation/validation email on signup

I have a WP 3.3 installed and running great. My client would like to confirm a valid email address by sending the user a confirmation email containing a link to "confirm". I have played around with ...
3
votes
1answer
618 views

Prevent user creating new users with specific roles

On a multisite installation I have created some custom roles. Some of them have the capabilities to create new users. I want to allow users to create new users only with allowed roles. One step is ...
3
votes
2answers
3k views

Custom Registration Template/Page

Is there a way to display the WordPress register form on a custom page the way one would use <?php get_search_form( $echo ); ?> for a search form? If not how would one go about creating such a ...
3
votes
1answer
499 views

Post-Registration, post-meta hook?

Is there a hook in WP to access meta data of a user JUST after they have registered and meta data has been added to the database? I was reading to use profile_update, but wouldn't that be invoked ...
3
votes
3answers
8k views

How to add first name & last name to default registration form?

is it possible to add first name & last name to the default registration form of wordpress?
3
votes
3answers
3k views

Integrating WordPress to my website, while keeping my own authentication system

I've recently integrated WordPress to my website and I've been trying to find out the correct way to replace Wordpress' authentication system with the one on my website. My website already has a user ...
3
votes
2answers
169 views

How to customise wp-login.php only for users who are setting a password for the first time?

As administrator, if I make a new user, I can choose to email my new users a link which they click to go to wp-login.php where they are invited to set their password for the first time. (Wordpress ...
3
votes
1answer
2k views

Copy a user from one WordPress site to another

Is it possible to copy a user from one WordPress site to another? I copied the record from the user table and all the related records from the usermeta table (12 records by default) but I think ...
3
votes
1answer
3k views

How do i auto approve new user?

I am developing a social networking site on buddypress. and when a new user registers on my website, he gets an activation link in the email, and i have to manually activate his account from admin ...
3
votes
1answer
2k views

Create new user without password

For a specific use case, I need to add users only by username and email without having to input a password for them. Right now if i try to leave the password field empty, it displays an error. How ...
3
votes
1answer
249 views

Can I hook into the invite user process to verify their email address is from a certain domain?

I have a site option where users can enter domains to "whitelist" registrations from. What I'd like to do is hook into the invite/create user flow to verify the new user's domain from their email ...
3
votes
2answers
645 views

Problem with email_exists in shortcode

I have a custom registration form that I insert into a page via shortcode. The shortcode function looks like this: function custom_registration_form_shortcode() { $error = FALSE; if (...
2
votes
3answers
10k views

turn off new user registration emails

I would like to turn off the emails that the admin gets when a new user registers. We are getting a lot of emails because of new registrations (they are legitimate registrations) but I just don't ...
2
votes
2answers
7k views

How to hook into user registration process Before user registers

I need to add a field to the user registration form and then validate it before I add a new user to my WordPress I know how to hook into the registration form via add_filter('register_form', '...