Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

WC_Product::set_stock() is deprecated

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles