Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7747277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:29:22+00:00 2026-06-01T10:29:22+00:00

Hey so I’m building an iOS app. The fist window is a login screen

  • 0

Hey so I’m building an iOS app. The fist window is a login screen where people login using their login information from the wordpress blog.
I’ve considered xml-rpc but it doesn’t allow a registration from the phone.
Then I looked at using a RESTful api but I have no idea how to connect it to the wordpress db to check if the username and password are correct.
There are quite a few puling for wordpress that set up RESTful APIs but none of them appear to help with what I’m trying to do.

Any help would be very much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:29:23+00:00Added an answer on June 1, 2026 at 10:29 am

    Figured out how to do it. You can do it with xml-rpc. Here’s the code I have in my request plugin if anyone ever needs it:

    function register_user($args){
    
        require_once( ABSPATH . WPINC . '/registration.php' );
    
    /* Check if users can register. */
    $registration = get_option( 'users_can_register' );
    
        /* If user registered, input info. */
    
    
            $userdata = array(
                'user_pass' => esc_attr( $args[2] ),
                'user_login' => esc_attr( $args[0] ),
                'first_name' => esc_attr( "" ),
                'last_name' => esc_attr( "" ),
                'nickname' => esc_attr( "" ),
                'user_email' => esc_attr( $args[1] ),
                'user_url' => esc_attr( "" ),
                'aim' => esc_attr( "" ),
                'yim' => esc_attr( ""),
                'jabber' => esc_attr( "" ),
                'description' => esc_attr( "" ),
                'role' => get_option( 'default_role' ),
            );
    
            if ( !$userdata['user_login'] ){
                $error = __('A username is required for registration.', 'frontendprofile');
                return "user-invalid";      
            }elseif ( username_exists($userdata['user_login']) ){
                $error = __('Sorry, that username already exists!', 'frontendprofile');
                return "user-used";
            }elseif ( !is_email($userdata['user_email'], true) ){
                $error = __('You must enter a valid email address.', 'frontendprofile');
                return "email-invalid"; 
            }elseif ( email_exists($userdata['user_email']) ){
                $error = __('Sorry, that email address is already used!', 'frontendprofile');
                return "email-used";
            }
            else{
                $new_user = wp_insert_user( $userdata );
                wp_new_user_notification($new_user, $user_pass); //send the user an email with the information
    
                return "success";
            }
    
         update_user_meta( $args[0]->ID, 'setup', "0" );
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

*Hey , I have finished developing my app In my iphone apps I have
Hey I just started dabbling with android programming, and from my short period of
Hey folks I am trying to implement a search functionality in a website using
Hey I just started learning to make application in C# using back-end as sql.
Hey Guys i am currently trying to stopping one tableviewcell from being editable. But
Hey SO community, I saw here: http://www.mustap.com/phpzone_post_203_setter-and-getter an argument for using a type of
Hey bloggers out there! I've created Wordpress blog that I am hosting myself, and
Hey guys. This is a follow-on from this question : After getting the right
Hey, I'm currently trying to send an image file to a web server using
Hey guys I am doing the application from the book RhoMobile Beginners Guide but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.