Support » Plugin: YITH Donations for WooCommerce » WC_Product::set_stock() is deprecated

  • Howdy_McGee


    I’m receiving the following error whenever working with this plugin:

    PHP Notice: WC_Product::set_stock is <strong>deprecated</strong> since version 3.0! Use wc_update_product_stock instead. in \wp-includes\functions.php on line 3853
    YITH_WC_Donations->init_ywds_plugin() \wp-includes\class-wp-hook.php:286
    yit_save_prop() \wp-content\plugins\yith-donations-for-woocommerce\includes\classes\class.yith-woocommerce-donations.php:284
    yit_set_prop() \wp-content\plugins\yith-donations-for-woocommerce\plugin-fw\yit-woocommerce-compatibility.php:113

    This occurs whenever installing and moving products to trash.

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


    Thanks for your feedback!
    As soon as possile we will release a new update to fix this issue!

Viewing 1 replies (of 1 total)
  • The topic ‘WC_Product::set_stock() is deprecated’ is closed to new replies.