WC_Abstract_Legacy_Product::get_related_terms()
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.
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. |
WC_Abstract_Legacy_Product::get_related_terms() WC Abstract Legacy Product::get related terms code WC 7.7.0
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 ) ); }