WC_Product_Data_Store_Interface::sort_all_product_variations()
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() WC Product Data Store Interface::sort all product variations code WC 9.6.1
public function sort_all_product_variations( $parent_id );