Warning: This method has been deprecated. Use wc_get_product instead.

WC_Abstract_Legacy_Product::get_child( mixed $child_id )

Returns the child product.


Description Description


Parameters Parameters

$child_id

(Required)


Top ↑

Return Return

(WC_Product|WC_Product|WC_Product_variation)


Top ↑

Source Source

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

	public function get_child( $child_id ) {
		wc_deprecated_function( 'WC_Product::get_child', '3.0', 'wc_get_product' );
		return wc_get_product( $child_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.