programmatically add users and passwords (3 posts)

  1. israel
    Posted 10 years ago #

    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?

  2. norasco
    Posted 10 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
    Posted 10 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.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.