WordPress.org

Ready to get started?Download WordPress

Forums

programmatically add users and passwords (3 posts)

  1. israel
    Member
    Posted 9 years ago #

    Hi,
    I posted this under Plugins, but maybe that was the wrong forum... I want to include a WordPress blog as part of a larger members-only website. I would like members to register themselves (setting their security information) for the website. Then, I would like the system to automatically apply that information for new members on the blog.
    Basically, I would like one authentication for the entire site, rather than have one for the site, and a separate one for the blog. Is this currently possible? Or can some authentication API be added made in the future?
    Thanks.
    --
    Israel

  2. norasco
    Member
    Posted 8 years ago #

    I am also wondering how I can add all users of my website to a new WP blog enbloc. Can I export all emails to the blog as users of level zero or one?

  3. Cypher
    Member
    Posted 8 years ago #

    @israel, your situation would require that you hook into WP's files and add users. Take a look at the file /wp-admin/users.php which adds users to the database. You could replicate this code.

    @norasco, if you just want to move from one blog to another, use phpMyAdmin and dump your database to a file, and then import it on your new host.

    If you only want users, then just export and import the "wp_users" table.

    Regards

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.