Hi,
The message you’re seeing is a PHP notice indicating that the function get_woocommerce_term_meta
has been deprecated since WooCommerce version 3.6 and you should use get_term_meta
instead. This notice is letting you know that the older function may be removed in future WooCommerce versions, so it’s recommended to update your code to use the newer function.
In your code, wherever you have used get_woocommerce_term_meta
, you should replace it with get_term_meta
. The parameters you pass to the function should remain the same, as the usage of get_term_meta
is generally similar to get_woocommerce_term_meta
.
For example, if you have used:
$meta_value = get_woocommerce_term_meta( $term_id, $meta_key, $single );
You should update it to:
$meta_value = get_term_meta( $term_id, $meta_key, $single );
By making this change, you’ll be using the recommended function and ensure compatibility with newer versions of WooCommerce.