简体   繁体   English

为wordpress创建多个帐户

[英]Create multi accounts for wordpress

I am trying to create a user database with defined ID numbers. 我试图用定义的ID号创建一个用户数据库。 However the wordpress database encrypted password, which I cant insert the users into database, 但是wordpress数据库加密密码,我无法将用户插入数据库,

There are two approach I am thinking but I cannot finish it 我正在考虑两种方法,但我无法完成

  • generate password before insert into wp_user table. 在插入wp_user表之前生成密码。 -- however I had no idea on how to generate -但是我不知道如何产生
  • find some plugin that do for me. 找到一些对我有用的插件。 -- no idea which one fit from plugin pools -不知道哪一个适合插件池

The two question I would wanna ask how wordpress password work? 我想问的两个问题是wordpress密码如何工作? any plugin for multi user inserting? 任何用于多用户插入的插件?

you can either use the PHP md5() in your PHP file to encrypt the password or MySQL MD5() in your query. 您可以在PHP文件中使用PHP md5()加密密码,也可以在查询中使用MySQL MD5()

If you are working within the Wordpress environment, you can use wp_insert_user() to create your users using a selected ID. 如果您在Wordpress环境中工作,则可以使用wp_insert_user()使用选定的ID创建用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM