When I use wc_rest_upload_image_from_url
and add an image url from wordpress media library e.g. .../wp-content/uploads/2022/04...
I get following error:
woocommerce_rest_invalid_remote_image_url
Unauthorized
Error Status 400
CodePudding user response:
The URL provided is htpasswd protected - you cannot use it inside wc_rest_upload_image_from_url()
function - ( Unauthorized Access ).