diff --git a/includes/MarketplaceApi.php b/includes/MarketplaceApi.php index e70bd23..9d8bf66 100644 --- a/includes/MarketplaceApi.php +++ b/includes/MarketplaceApi.php @@ -212,7 +212,7 @@ public static function product_page_callback( \WP_REST_Request $request ) { ); if ( - ! is_wp_error( $response ) + ! is_wp_error( $response ) && 200 === wp_remote_retrieve_response_code( $response ) ) { $body = wp_remote_retrieve_body( $response );