WC_Product::set_image_id( int|string $image_id = '' )

Set main image ID.


Description Description


Parameters Parameters

$image_id

(int|string) (Optional) Product image id.

Default value: ''


Top ↑

Source Source

File: includes/abstracts/abstract-wc-product.php

	public function set_image_id( $image_id = '' ) {
		$this->set_prop( 'image_id', $image_id );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.