latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Create user and assign level in PHP script

Home Forums Community Forum Create user and assign level in PHP script

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 8 months ago.

Topic Author Topic
Posted: Monday Apr 22nd, 2013 at 6:08 am #48076

I want to create a WP user from within a PHP script and assign a s2member level to that user.

I could not find any demo source code on how to do this. Do you have any samples for this?

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Monday Apr 22nd, 2013 at 7:39 pm #48130
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

You could use the Remote Operations API, seen here, or use WordPress’s wp_create_user() function.

See: Dashboard -› s2Member® -› API / Scripting -› Remote Operations API
See Also: http://codex.wordpress.org/Function_Reference/wp_create_user

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.