WordPress at a glance
function is not described

WC_Abstract_Legacy_Product::get_related_terms() protected WC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use wc_get_product_term_ids instead.

Retrieves related product terms.

{} It's a method of the class: WC_Abstract_Legacy_Product{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_related_terms( $term );
$term (required)
-

Changelog

Deprecated Since 3.0.0 Use wc_get_product_term_ids instead.

Code of WC_Abstract_Legacy_Product::get_related_terms() WC 5.0.0

<?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 ) );
}