woocommerce_get_product_terms()
Deprecated since 3.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
No Hooks.
Returns
Array.
Usage
woocommerce_get_product_terms( $object_id, $taxonomy, $fields );
- $object_id(required)
- .
- $taxonomy(required)
- .
- $fields
- .
Default:'all'
Changelog
| Deprecated since | 3.0 |
woocommerce_get_product_terms() woocommerce get product terms code WC 10.7.0
function woocommerce_get_product_terms( $object_id, $taxonomy, $fields = 'all' ) {
wc_deprecated_function( __FUNCTION__, '3.0', 'wc_get_product_terms' );
return wc_get_product_terms( $object_id, $taxonomy, array( 'fields' => $fields ) );
}