WordPress.org

Forums

API to add WP users? (4 posts)

  1. Halldorr
    Member
    Posted 5 years ago #

    I was searching the site but couldn't find anything to explicitly add a user to wp so not sure if it doesn't exist or I've overlooked it. What I'm trying to do is create a WordPress user via an external script. So if someone signs up for my site, I can also create a WP user for them.

    I can just do a SQL insert, but was wondering if there was an API out there for this.

  2. check
    Member
    Posted 5 years ago #

    Hi there Halldorr

    Did you find an answer for this? I am trying to do the exact same thing.

  3. Adam Harley (Kawauso)
    Member
    Posted 5 years ago #

    I think you'd have to load wp-load.php and use WordPress' native functions found in wp-includes/registration.php. As far as I know, there are only external APIs in WordPress for posting.

  4. granrojo
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic