woocommerce_rest_api_uploaded_image_from_url, $file, $image_url

woocommerce_rest_api_uploaded_image_from_url, $file, $image_url

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_rest_api_uploaded_image_from_url, $file, $image_url') is found 1 times:

  • /includes/wc-rest-functions.php line 123
    		/* translators: %s: error message */
    		return new WP_Error( 'woocommerce_rest_invalid_image', sprintf( __( 'Invalid image: %s', 'woocommerce' ), $file['error'] ), array( 'status' => 400 ) );
    	}
    
    	do_action( 'woocommerce_rest_api_uploaded_image_from_url', $file, $image_url );
    
    	return $file;
    }
    
    /**
     * Set uploaded image as attachment.