WordPress at Your Fingertips
function is not described

WC_AJAX::variation_bulk_set() private WC 1.0

Bulk set convenience function.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_AJAX::variation_bulk_set( $variations, $field, $value );
$variations(array) (required)
List of variations.
$field(string) (required)
Field to set.
$value(string) (required)
to set.

Code of WC_AJAX::variation_bulk_set() WC 5.9.0

private static function variation_bulk_set( $variations, $field, $value ) {
	foreach ( $variations as $variation_id ) {
		$variation = wc_get_product( $variation_id );
		$variation->{ "set_$field" }( wc_clean( $value ) );
		$variation->save();
	}
}