Retrieve user IP address You can use this API function to retrieve the user's IP for use in your custom code. echo um_user_ip(); // will print user's IP address