• Hi,

    Is there a way to programmatically create a user in WP-Members with the appropriate properties (name, email, address, etc.)? What I would like to achieve that after creation of the user, the confirmation email with password is sent (automatically).

    Thanks,

    — Jaap

    • This topic was modified 8 years, 5 months ago by jgfrm.
    • This topic was modified 8 years, 5 months ago by jgfrm.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Presently, there isn’t an API function for this, but that’s a good idea.

    You could accomplish it by knitting together some of the various elements – specifically wp_create_user(), update_user_meta(), and wpmem_inc_email().

    While the two WP functions have documentation, the plugin’s wpmem_inc_email() function is not specifically documented as a user callable function. However, it does have inline documentation in the source and it can be reviewed in the plugin’s inc/email.php file.

Viewing 1 replies (of 1 total)

The topic ‘API call to create user’ is closed to new replies.