Just working through this, I am returning the $url used to confirm the account back to WordPress. If I submit this in a browser it works fine.
It is failing here:
if ( !is_array($response) or !isset( $response[‘body’] ) )
If I seperate these out, putting !isset( $response[‘body’] ) first completely crashes WordPress, and !is_array($response) is met, so something is going funny with this $response = wp_remote_get( $url );.
Not sure how to find out what as whenever I try and use $response WordPress doesn’t load!
Could it be an issue with wp_remote_get? Using Azure Websites. Thanks