Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wp-create-user]

The tag has no usage guidance.

0
votes
0answers
17 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
1answer
28 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 ...
1
vote
1answer
1k 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
1answer
102 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-...
2
votes
0answers
293 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
1answer
82 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 ...
2
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 ...
2
votes
1answer
11k 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, ...
0
votes
1answer
2k 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
1answer
131 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
1answer
73 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
1answer
153 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
1answer
1k 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
1answer
67 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
1answer
71 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 ...
2
votes
2answers
8k 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
4answers
17k 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
1answer
979 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
1answer
1k 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
1answer
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 ...