WC_Product::set_parent_id( int $parent_id )

Set parent ID.


Description Description


Parameters Parameters

$parent_id

(Required) Product parent ID.


Top ↑

Source Source

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

	public function set_parent_id( $parent_id ) {
		$this->set_prop( 'parent_id', absint( $parent_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.