WC_Product_Data_Store_Interface::sort_all_product_variations()publicWC 1.0

Make sure all variations have a sort order set so they can be reordered correctly.

Method of the class: WC_Product_Data_Store_Interface{}

No Hooks.

Return

null. Nothing (null).

Usage

$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) (required)
Parent ID.

WC_Product_Data_Store_Interface::sort_all_product_variations() code WC 9.0.1

public function sort_all_product_variations( $parent_id );