WC_AJAX::create_all_product_variations()
Create all product variations from existing attributes.
Метод класса: WC_AJAX{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_AJAX::create_all_product_variations( $product );
- $product(разное) (обязательный)
- Product class.
Код WC_AJAX::create_all_product_variations() WC AJAX::create all product variations WC 9.3.1
private static function create_all_product_variations( $product ) { $data_store = $product->get_data_store(); if ( ! is_callable( array( $data_store, 'create_all_product_variations' ) ) ) { wp_die(); } $number = $data_store->create_all_product_variations( $product, Constants::get_constant( 'WC_MAX_LINKED_VARIATIONS' ) ); $data_store->sort_all_product_variations( $product->get_id() ); return $number; }