All Questions
Tagged with user-registration user-meta
55 questions
1
vote
2
answers
40
views
Include New Meta Field In New User Registration Email
I am currently using the below code to add some meta fields to my users and would love to include these in their registration email, but it appears they are not created before the email is sent.
// ...
0
votes
1
answer
245
views
MySQL query to list users who never signed in
What MySQL query can I use to get a list of users who have never logged in to WP?
Some background...
My WordPress website has been running since 2015 and initially, I had a newsletter form that would ...
1
vote
0
answers
242
views
Create Unique and Customized User ID for Website Members in WordPress
I want a Feature which can allow Custom User ID creation at Registration on WordPress.
This will be different from the User ID that WordPress creates at Registration.
This one is something that is ...
0
votes
0
answers
29
views
Group users by meta_value
i am trying to automatically group users when they register according to a list of selections in the register form. I am using WP User Group plugin to make groups and Ultimate Member to register users....
0
votes
0
answers
107
views
Linking form to user meta fields
I currently have my login page set up to allow sign up through google. Immediately after a successful sign up I'm looking to set up a redirect to a form where the user can enter additional details and ...
0
votes
1
answer
343
views
Associate multiple email addresses with the same user account, so they can log in with either
Is there a way to associate multiple email addresses (2) with the same user account?
The goal is for the user to be able to use their company email or personal email to log into a company portal - ...
0
votes
1
answer
166
views
Create Wordpress User in backend, and automatically create a new post in Custom Post Type with user uame as the Title in the post
We are developing a golf tour itinerary system for our clients, and we only want client with unique booking reference 221234 to see their tour itinerary, which is on a CPT titled 221234.
Is there a ...
0
votes
1
answer
733
views
How to add fields in custom registration form, validate it and aave to db? [closed]
I use a WP theme with a custom registration form. I want to add two fields to it (for phone number and company name). What to add to the php file of the form and what to the function file of theme ...
0
votes
0
answers
19
views
Can I add a unique code for each user based on the location?
I am trying to create a unique code for each user based on the location he/she adds when registering.
For example:
User from UAE: 971-0001
then a user from Egypt: 020-0002
Can this be done? Thank you ...
0
votes
1
answer
27
views
Using WP for user management
I want to use Wordpress for the user management of a simple web app.
What I really need to do:
Check if a user is logged in
Save meta data to a logged in user
Read meta data of a logged in user
...
0
votes
1
answer
146
views
Creating a custom post type upon registration for a specific user role
Can anyone help me to create a custom post type content when a new user is registered? But the user should be of specific role only.
I have been searching but couldn't find any solution.
1
vote
0
answers
121
views
Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
I am trying to write a custom user registration plugin. The plugin has 5 basic functionalities
Take form data and create a user using wp_insert_iser
Once a user is created, update user meta for ...
0
votes
1
answer
835
views
Adding user metadata to all users
I am not sure what I am doing wrong here. I am trying to automatically add this metadata to each new user upon registration.
function add_to_group($user_id, $meta_key, $meta_value ) {
$...
0
votes
0
answers
40
views
Safely changing UserID's, re-using deleted UserID's and automatically using deleted userID's instead of an increment
I'm looking for 3 different solutions all relating to user ids, I'm needing a solution to safely make changes without destroying the site.
Issue 1:
I am wanting to change the userID of a user from ...
0
votes
1
answer
461
views
Updating user meta data from external link, user not logged in
My login process is exactly like this:
1- user put email in the form
2- a link sent to email for setting password
3- user click on the link and redirect to website with code like this:
https://www....
1
vote
0
answers
95
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
0
answers
25
views
How can I track who clicked what in my member area?
I have a protected member area where registered members (= logged in with a Wordpress user account) can click to view videos and click to download PDF files. I want to know which user clicked what ...
1
vote
0
answers
312
views
How to create user specific pages (not user role!)?
For my users on wordpress I have to manually upload research report for every user. the report is customised and different for every user. I am looking for a way to create user specific page, wherein ...
0
votes
0
answers
570
views
Get user meta on registration hook
How to get the user meta fields no registration hook in wordpress,
for examples we are registering the user in wordpress rest api, after user registration from mobile need to add function that get the ...
0
votes
1
answer
563
views
Storing data to database and user registration
The project that I'm working with have a quote form. When someone submit the quote request, the information should be stored into a new table in the database and also prompt the user to register an ...
0
votes
2
answers
19k
views
ACF Upload Image in front-end with custom form
I created extra fields for my subscribers, one of them is an image field, so they can upload an image to their profile.
I created the fields with ACF (Advanced Custom Fields).
I have a custom ...
1
vote
1
answer
69
views
How can I attach a user to another user with user meta
I've been searching for an answer for a number of days with no luck. I was hoping one of you might have dabbled with this before, and could point me in the right direction.
I am trying to find the ...
0
votes
1
answer
2k
views
Creating a custom register form
So, I have a code, that let's a user register, using the regular fields from WordPress. Everything works, the user is created and the info is registered.
But I need to add new fields in the form, and ...
0
votes
1
answer
656
views
Saving an array of values (file urls) to update_user_meta()?
My site allows user registration and requires users to upload documents to verify themselves. For this (and other user data) I added various user fields on the WordPress backend.
At registration I ...
4
votes
1
answer
14k
views
Save custom user meta on registration
I'm trying to create my own registration form and adding phone number as required field and I would love to save that phone number as custom user meta.
After validation and santizing inputs, ets. my ...
4
votes
5
answers
44k
views
How to use the WP REST API for new user registration (sign up form)?
Is it possible to create a sign up form that can work through WP REST API for visitors to be able to create accounts on my site?
I can create such a form and use it to create new users. This works ...
1
vote
0
answers
591
views
Add default user field to WooCommerce checkout [closed]
trying to add default user meta field "nickname" to the standard woo commerce user checkout user field. The examples on their website adds custom fields to order_meta - but it seems the dont use ...
1
vote
1
answer
3k
views
Creating user without username and password
I have a registration form which will filled by users and according to that form i have only First name, Last name, Middle name, Email address as important and so many other minor things.
After ...
1
vote
1
answer
2k
views
How to add custom fields to the all users page
I m currently working on a project that involves me creating a custom registration form. This form after submission adds the user data to the wp users table, then inserts the user ID to the wp ...
0
votes
1
answer
38
views
UPDATED: Save a custom_field value when automatically creating a post using wp_insert_post
The following code automatically creates a new post for a user when they are registered in a custom post type (jt_cpt_team) for team members.
The final missing part of the puzzle is to save the $...
2
votes
1
answer
3k
views
Upload files programmatically to users
i'm using pods plugin to add new custom fields to user so i added 4 files custom fields and then trying to upload files to this fields from registration page and create new user but when i upload the ...
2
votes
1
answer
4k
views
Creating a custom post type upon registration
I'm struggling to find the best/quick easy solution to this problem:
I have a plugin that creates companies but stores all of the company info as a user so all information is in the user's profile. ...
1
vote
1
answer
14k
views
generate unique number when registering a user
I know there are userID, username in the database, but I want a formatted and unique number for physical world use.
For example: "2014xxxx" 201414:year,xxxx:generate randomly when registering a user....
2
votes
1
answer
455
views
How To Get User Data in Callback Function for pre_user_nicename?
Whenever I update a user profile in the dashboard, the user nice-name gets changed in the database: Every time, a "-2" is added.
I tried to reset the nicename (based loosely on this thread) ...
0
votes
0
answers
1k
views
Create custom fields/meta data gender+country - radiobuttons and dropdown on register screen for these fields
On register I want the user to select gender (radio buttons) and a country (dropdown from list of countries) as well as an agreement checkbox. I'd also like all of these to be editable on the user ...
0
votes
1
answer
2k
views
Custom registration form and custom field
I've created a custom registration form for my website with this code:
<?php
/*
Template Name: Registrazione-Custom
*/
get_header(); ?>
<!-- Row for main content area -->
...
0
votes
0
answers
246
views
wp_usermeta key problem
I am trying to add a meta key to wp_usermeta but it does not work at all. The key would get value from a checkbox. I used the code from Wordpress codex tutorial and it's not adding anything. I will ...
0
votes
1
answer
708
views
Assign random (and unique) user meta upon registration
When a user registers, I need to assign a random but unique, 4-digit number as user meta data. The number will be static and not change: Not by the user himself or any user with a higher capability. ...
1
vote
1
answer
3k
views
Store user's registration date as meta
I am trying to modify the following code to register it as a meta field in the user's profile to have registration date as a meta field. This would allow me to reach the information easily and ...
0
votes
1
answer
2k
views
Reordering fields in registration form via custom plugin
I'd like to reorder the fields in the default WP registration form. I'm adding additional fields with my plugin but they are appearing below the username and email fields. My code is below (it's ...
6
votes
2
answers
20k
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 ...
2
votes
2
answers
14k
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', '...
1
vote
1
answer
12k
views
Displaying a Welcome Message to a Woocommerce User
In the registration fields, I've introduced an two additional fields that take the First name and last name of the registering user. In my woocommerce-functions.php I define (user_firstname/lastname) ...
0
votes
0
answers
406
views
Let admin users edit member profiles from front end
I'm using WP User Frontend Pro, but the pro version lacks the feature of letting admins edit registered users profiles from front end.
I'm building a web app using WordPress, and the administrator ...
1
vote
2
answers
158
views
Average Account Age
I'm trying to see if there is a way to find an average age of user accounts which came through my wordpress site not including the age of the administrator account.
When I say age I don't mean their ...
1
vote
1
answer
3k
views
User defined password at registration - registration email sends auto generated pass
Updating some meta fields on registration and providing the user the option to pick a password yet the registration email sends the auto generated password. User defined password works and not emailed ...
1
vote
2
answers
1k
views
Can I prevent "wp_user_level" from getting added to wp_usermeta on registration?
I've heard this meta key is obsolete, but they are still getting created every time a user registers. Can I prevent this? I'm trying to slim down that table.
3
votes
1
answer
5k
views
How to get user-meta from Social Login registered users?
It looks like social login plugins (such as Wordpress Social Login, OneAll etc.) do not create users in the original wp-database as regular registration from Admin dashboard. Hence it is not possible ...
0
votes
2
answers
1k
views
very last action before during user registration before he is redirected to homepage
I'm using wordpress social login plugin. So some of my users register via facebook.
I'm trying to hook myself to user_register and display only once upon registration and upon using facebook as ...
0
votes
2
answers
17k
views
Create Unique ID for user
I have to create a membership site, but I need to give every user that registers a automatic ID number.
For example,
User 2 - has a code - pay-102
User 3 - has a code - pay-103
I did a forum ...