WordPress at Your Fingertips
function is not described

WC_Abstract_Legacy_Order::send_stock_notifications() public WC 1.0

Deprecated from version 3.0.0 No longer needs to be called directly.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Send the stock notifications.

{} It's a method of the class: WC_Abstract_Legacy_Order{}

No Hooks.


null. Nothing.


$WC_Abstract_Legacy_Order = new WC_Abstract_Legacy_Order();
$WC_Abstract_Legacy_Order->send_stock_notifications( $product, $new_stock, $qty_ordered );
$product (required)
$new_stock (required)
$qty_ordered (required)


Deprecated Since 3.0.0 No longer needs to be called directly.

Code of WC_Abstract_Legacy_Order::send_stock_notifications() WC 5.7.1

public function send_stock_notifications( $product, $new_stock, $qty_ordered ) {
	wc_deprecated_function( 'WC_Order::send_stock_notifications', '3.0' );