WC_AJAX::variation_bulk_action_variable_weight()private staticWC 1.0

Bulk action - Set Weight.

Method of the class: WC_AJAX{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_AJAX::variation_bulk_action_variable_weight() code WC 9.0.1

private static function variation_bulk_action_variable_weight( $variations, $data ) {
	self::variation_bulk_set( $variations, 'weight', $data['value'] );
}