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.8.3

do_action('woocommerce_api_uploaded_image_from_url') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 2232
    		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.