• Resolved Brian Henry

    (@brianhenryie)


    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 on get_term_meta(), see includes/wc-deprecated-functions.php:1123.

    Please change this in the next release.

Viewing 1 replies (of 1 total)
  • Plugin Author Beeketing

    (@beeketing)

    Hi Brian, thank you for contacting us. We have just updated the plugin to the new version, kindly be notified that you may need to update as well in order to fix it.

    If you need any further assistance, please do not hesitate to let us know.

    Regards,
    Beeketing.

Viewing 1 replies (of 1 total)
  • The topic ‘get_woocommerce_term_meta deprecation warning’ is closed to new replies.