Currently I’m building an app that passes data to Wordpress via API. The Wordpress API Endpoint is the users Wordpress URL. I’m trying to pass the URL to my API call and am having issues.
Right now I am using an Option drop down that pulls the different WP site URL’s that the logged in user has added to their account. That way they can select which one they want to use. However, when I try to pass that Option’s value to the API Call it returns an Array instead of the selected item. The only options I can find are to select the first item to return, which is not necessarily the option they’ve selected. How do I pass the item they’ve selected so I can use the value of that item as my API endpoint URL?