Skip to:
Content
Pages
Categories
Search
Top
Bottom

where is the register end point


  • quantumarchi
    Participant

    @quantumarchi

    Hi,

    i am building an app the website is already setup i was wondering where the register endpoint is.

    For example i have the exact same contact form as the register page on the site so if i submit the form post data to site.com/register will it register? or is there another endpoint like admin-ajax?

    Basically how would i register a user from outside the site in code

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)

  • Dominic Bowkett
    Participant

    @dominicbowkett

    Yes, It works if you’re saving that registered user data in database & pick it back at the time of login.


    quantumarchi
    Participant

    @quantumarchi

    dude are you trolling me? @dominicbowkett i tried submitting the data all i get is the page come back at me is there a way i can hook into and submit the user data in functions.php?


    r-a-y
    Keymaster

    @r-a-y

    For example i have the exact same contact form as the register page on the site so if i submit the form post data to site.com/register will it register?

    The registration URL is whatever you have set in the WP “Pages” menu. Look for the “Register” page to double-check, but the default is site.com/register.

    Did you try POSTing to site.com/register URL? If so, what happens?

    Basically how would i register a user from outside the site in code

    You can just use wp_insert_user() if you need to register a user into WordPress.

    If you want to use BP’s signup function, use bp_core_signup_user().

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar