admin管理员组

文章数量:1393367

Is it possible to create a user account without an email. Just a username?

I saw that there is a plugin to allow multiple authors under one email. Does anyone have any recommendations on other ways to do this. I know this not ideal but I have one user who will posting on behalf of multiple users. Having the user verify their email through gravatar for each new author is a

/

Is it possible to create a user account without an email. Just a username?

I saw that there is a plugin to allow multiple authors under one email. Does anyone have any recommendations on other ways to do this. I know this not ideal but I have one user who will posting on behalf of multiple users. Having the user verify their email through gravatar for each new author is a

http://coffee2code/wp-plugins/allow-multiple-accounts/

Share Improve this question edited May 2, 2012 at 14:46 digitalbart asked May 2, 2012 at 13:43 digitalbartdigitalbart 2171 gold badge2 silver badges7 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 4

As far as I'm aware, it's not possible via Add New under the Users tab, however, the wp_create_user function will let you create users without an email address:

$username = 'someuser';
$pass = 'swordfish';
$new_user_id = wp_create_user( $username, $pass );

You'd have to wrap that in a basic plugin and provide some sort of UI for adding users.

such a plugin exists: https://wordpress/plugins/optional-email/ but hasn't been maintained for a while. Still works on one of my sites however.

本文标签: authorno emails for a user account