Deprecated: woocommerce_stock_html | WordPress.org

[ad_1]

Hi,

I received this woocommerce related issue:

Deprecated: The woocommerce_stock_html filter funkció használata nem ajánlott verziótól kezdődően. woocommerce_get_stock_html használata javasolt helyette. in /xxx/wp-includes/functions.php on line 6031

When I change the line number 545 (file plugins/advanced-woo-labels/includes/class-awl-integrations.php)

add_filter( 'woocommerce_stock_html', 'AWL_Integrations_Callbacks::return_empty_string', 999 );

with

add_filter( 'woocommerce_get_stock_html', 'AWL_Integrations_Callbacks::return_empty_string', 999 );

the error message disappears.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer