get_woocommerce_term_meta()WC 1.0

Deprecated from version 3.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

WooCommerce Term Meta API

WC tables for storing term meta are deprecated from WordPress 4.4 since 4.4 has its own table. This function serves as a wrapper, using the new table if present, or falling back to the WC table.

No Hooks.

Return

Mixed.

Usage

get_woocommerce_term_meta( $term_id, $key, $single );
$term_id(int) (required)
Term ID.
$key(string) (required)
Meta key.
$single(true|false)
Whether to return a single value. .
Default: true)

Changelog

Deprecated since 3.6.0

get_woocommerce_term_meta() code WC 8.7.0

function get_woocommerce_term_meta( $term_id, $key, $single = true ) {
	wc_deprecated_function( 'get_woocommerce_term_meta', '3.6', 'get_term_meta' );
	return function_exists( 'get_term_meta' ) ? get_term_meta( $term_id, $key, $single ) : get_metadata( 'woocommerce_term', $term_id, $key, $single );
}