WordPress at Your Fingertips
function is not described

WC_Product_Data_Store_Interface::sort_all_product_variations() public WC 1.0

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

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

No Hooks.


null. Nothing.


$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.

Code of WC_Product_Data_Store_Interface::sort_all_product_variations() WC 6.1.1

public function sort_all_product_variations( $parent_id );