WC_AJAX::variation_bulk_action_variable_stock_status_outofstock()private staticWC 1.0

Bulk action - Set Stock Status as Out of Stock.

Метод класса: WC_AJAX{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_AJAX::variation_bulk_action_variable_stock_status_outofstock( $variations, $data );
$variations(массив) (обязательный)
List of variations.
$data(массив) (обязательный)
Data to set.

Код WC_AJAX::variation_bulk_action_variable_stock_status_outofstock() WC 8.9.0

private static function variation_bulk_action_variable_stock_status_outofstock( $variations, $data ) {
	self::variation_bulk_set( $variations, 'stock_status', 'outofstock' );
}