woocommerce_api_uploaded_image_from_url

woocommerce_api_uploaded_image_from_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_uploaded_image_from_url') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 2232
    2228
    2229
    2230
    2231
    2232
    2233
    2234
    2235
    2236
    2237
    2238
        if ( is_wp_error( $upload ) ) {
            throw new WC_API_Exception( 'woocommerce_api_' . $upload_for . '_upload_error', $upload->get_error_message(), 400 );
        }
     
        do_action( 'woocommerce_api_uploaded_image_from_url', $upload, $image_url, $upload_for );
     
        return $upload;
    }
     
    /**
     * Sets product image as attachment and returns the attachment ID.