Warning: This method has been deprecated.

WC_Abstract_Legacy_Product::get_variation_id()

Get variation ID.


Description Description


Return Return

(int)


Top ↑

Source Source

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

	public function get_variation_id() {
		wc_deprecated_function( 'WC_Product::get_variation_id', '3.0', 'WC_Product::get_id(). It will always be the variation ID if this is a variation.' );
		return $this->get_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.