WC_Product_Data_Store_Interface::sort_all_product_variations()
Make sure all variations have a sort order set so they can be reordered correctly.
Метод класса: WC_Product_Data_Store_Interface{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface(); $WC_Product_Data_Store_Interface->sort_all_product_variations( $parent_id );
- $parent_id(int) (обязательный)
- Parent ID.
Код WC_Product_Data_Store_Interface::sort_all_product_variations() WC Product Data Store Interface::sort all product variations WC 8.7.0
public function sort_all_product_variations( $parent_id );