WC_Product::set_gallery_image_ids( array $image_ids )

Set gallery attachment ids.

Description Description

Parameters Parameters


(Required) List of image ids.

Top ↑

Source Source

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

	public function set_gallery_image_ids( $image_ids ) {
		$image_ids = wp_parse_id_list( $image_ids );

		$this->set_prop( 'gallery_image_ids', $image_ids );

Top ↑

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.