This error means $response isn’t returning the array you expect but a wordpress error object. Try
if( is_wp_error( $response ) ) {
echo $response->get_error_message();
}
and see what you get.
This error means $response isn’t returning the array you expect but a wordpress error object. Try
if( is_wp_error( $response ) ) {
echo $response->get_error_message();
}
and see what you get.