get_woocommerce_term_meta deprecation warning
-
Our logs are showing a warning:
[12-Dec-2019 05:54:48 America/Swift_Current] PHP Notice: get_woocommerce_term_meta is deprecated since version 3.6! Use get_term_meta instead. in /home/user/public_html/wp-includes/functions.php on line 4565
grep -rnw wp-content/plugins -e 'get_woocommerce_term_meta'
shows it coming from this plugin./beeketing-for-woocommerce/src/Platforms/WooCommerce/Data/CollectionManager.php:67
needs to be changed from:if (!$image && $image_id = get_woocommerce_term_meta($collectionArray->term_id, 'thumbnail_id')) {
to
if (!$image && $image_id = get_term_meta($collectionArray->term_id, 'thumbnail_id')) {
This will mean a minimum WordPress version of 4.4.0.
get_woocommerce_term_meta
is just a wrapper onget_term_meta()
, see includes/wc-deprecated-functions.php:1123.Please change this in the next release.
- The topic ‘get_woocommerce_term_meta deprecation warning’ is closed to new replies.