Hi there,
The error message you’re receiving is letting you know that a plugin, theme, or custom code snippet is still using a deprecated function: get_woocommerce_term_meta
You can see that on this line:
wc_deprecated_function( 'get_woocommerce_term_meta', '3.6', 'get_term_meta' );
It’s okay to use a deprecated function in the short term, but you’ll ultimately want to get that updated to get_term
instead.
This will ensure that your code using get_woocommerce_term_meta
will still work in future versions of WooCommerce.
Thanks,
Joey
how do i solve this error. Please help me because I’m not a programmer I don’t know where to start.
Thanks
Hello @hoaibac,
how do i solve this error. Please help me because I’m not a programmer I don’t know where to start.
To actually swap out the deprecated function you’ll need to work with a developer. Hopefully, whoever created that (the plugin or theme) will update it for you. I would reach out to that developer and make sure they are aware of the notice.
To hide the notice from your customers, you can follow this post from WP Beginner.
https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/
It’s safe to hide those from customers on your site and I would recommend doing so.
Take care,