Warning: This method has been deprecated. Use wc_get_product_term_ids instead.
WC_Abstract_Legacy_Product::get_related_terms( $term )
Retrieves related product terms.
Description Description
Parameters Parameters
- $term
-
(Required)
Return Return
(array)
Source Source
File: includes/legacy/abstract-wc-legacy-product.php
protected function get_related_terms( $term ) { wc_deprecated_function( 'WC_Product::get_related_terms', '3.0', 'wc_get_product_term_ids' ); return array_merge( array( 0 ), wc_get_product_term_ids( $this->get_id(), $term ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |