$response = wp_remote_post($url, array(...)); $response_body = json_decode(wp_remote_retrieve_body( $response ), true);