WC_AJAX::variation_bulk_action_variable_stock_status_outofstock()private staticWC 1.0

Bulk action - Set Stock Status as Out of Stock.

Method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_AJAX::variation_bulk_action_variable_stock_status_outofstock( $variations, $data );
$variations(array) (required)
List of variations.
$data(array) (required)
Data to set.

WC_AJAX::variation_bulk_action_variable_stock_status_outofstock() code WC 8.9.0

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