Questions tagged [wp-create-user]
The wp-create-user tag has no usage guidance.
25
questions
0
votes
1
answer
37
views
Mirgrating a user at signon
I am migrating a wordpress site to another site. The users from the old site need to work with the new site. I am doing a staggered implementation, so do not want to bring all the users over at once.
...
0
votes
1
answer
508
views
Set user role, if an specific role created an user
Im Trying to set an user role. if an specific user role (sales-agents) create an user.
the created user should have the role b2b instead of customer
here is my try:
add_action( 'init', '...
1
vote
0
answers
33
views
How can I create a new user account while creating a new post, and then set that new user as the author of that new post?
I have a custom meta box with some user information fields, and when the post is published, the new user account is created, along with the new post. However, the new post's author is set as the ...
1
vote
0
answers
14
views
I want to submit multiple users if checkbox is checked
The following code is getting all terms and see if any one of them is checked or not.
If any term is checked a form should show under the selected checkbox with email, the username(auto-generated) and ...
1
vote
0
answers
56
views
On multisite, plugins are disabled prematurely when viewing the /wp-activate.php page file
On multisite, setting the WP_INSTALLING constant on wp-activate.php file disables all plugins prematurely. Why didn't the core create a way to bypass this. Though this may be required for activating ...
0
votes
0
answers
84
views
Help hooking into user_register
I'm trying to do a POST request to my API when a user is created.
I've installed Code snippets and added the following:
add_action('user_register','my_function');
function my_function($user_id){
...
0
votes
1
answer
86
views
How do I edit disclaimer/contact information?
I inherited this wordpress website called RxStudyGuides to use as a study tool for pharmacy students. However, the owner and creator of the website still has there contact information on the website ...
3
votes
1
answer
5k
views
wp_insert_user - how to send verification email before logging in
Using below code, I am able to create an user. But when I am login, the user is directly logging in to dashboard and there is no email sent to verify the email address. Is there any way to send ...
0
votes
2
answers
712
views
Custom Post Type & Author not associating, user post count is 0, api doesn't return author in post objects
When Users create custom post types, the author field does not seem to be passed back to WP posts functions.
As the title says, I'm creating a user account programatically, and having that user log-...
3
votes
0
answers
696
views
Prevent wp_insert_user from creating duplicate users
I have a custom plugin that automatically creates a new user via wp_insert_user() if the current user does not exist yet.
We use data from our remote ldap server to provide the new user's details (...
0
votes
1
answer
179
views
Create users via PHP
I'd like to update my users list with some user from a csv file generated by another database (witch i can access too)
i'd like to create dynamically a user (with username, password and so on) and ...
5
votes
2
answers
10k
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 ...
2
votes
1
answer
21k
views
wp_create_user hook
I'm using UserUltra Pro plugin and I need to create a custom post type after user register in the site. UserUltra plugin uses wp_create_user() which I know is a wrapper for wp_insert_user(). Moreover, ...
1
vote
1
answer
4k
views
How to display user's nickname by default instead of username
I need to display the user's nickname by default after they are created in the DB, NOT the username.
I am creating a user with:
wp_create_user( $user_name, $random_password, $user_email );
...
1
vote
1
answer
196
views
Do I need to flush rewrite rules when creating new user if using custom author rewrite rules?
I am using custom urls for my author pages like this:
http://site.com/author_name
After I create a new user, that author page appears as not found; however, if I update my permalink structure from ...
0
votes
1
answer
271
views
Check to see if there a wordpress user account and create one if not outside of wordpress
Please note that this was posted on wp-hackers mailing list.
Hi guys,
Just wondering, does anyone know how I can go about checking to see if
there a wordpress account and create one if there isn't?
...
0
votes
1
answer
252
views
JSON API : Add a method called create_user to create a new user
First of all I would like to thank Dan Phiffer for providing such a wonderful plugin.
I have installed the JSON API Plugin on my blog and it works and post perfectly.
The problem that I need to add ...
0
votes
1
answer
2k
views
Fatal error: Call to undefined function register_new_user()
Have a wordpress theme with custom registration. Registration works on the registration page. If I take the form and place it on another page , eg. Homepage.. it gives me this error.
Here is the code ...
0
votes
1
answer
109
views
Assigning input to variable
I am trying to create a plugin that will generate users. I am pretty new to Wordpress and my PHP is ehhhh. I got some helpful help earlier but have made a few turns since...
The plugin will generate ...
2
votes
1
answer
79
views
Generating User(s) with Settings API
I am trying to create a plugin that will generate users. I am pretty new to Wordpress and my PHP is ehhhh. The idea for it is for the plugin to generate multiple users when its finished. Right now ...
10
votes
2
answers
18k
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
4
answers
26k
views
Send automatic email to user after wp_create_user
So, here is some code I came up with -- It works, but now I need it to send the username and password it generated to that email address automatically ?? Also the first and last name isn't recording ??...
0
votes
1
answer
1k
views
Have users created automatically when a network site is created
Trying to figure out how to have users created automatically when a network site is created.
So currently when a new user registers, their account is created and their network site is created. That ...
1
vote
1
answer
2k
views
Data sanitization for user registration and user login
What kinds of data sanitization I have to do if I make a front end login and registration system for wordpress users?
For login function wp_signon() should I escape the data for
possible sql ...
1
vote
1
answer
2k
views
wp_create_user not properly entering password
I'm trying to create a new user after someone fills out a form. I'm using wp_create_user to do so. A user is being created properly, but, for whatever reason, no password is being submitted to the ...