WordPress at Your Fingertips
function is not described

WC_Shipping::sort_shipping_methods() public WC 1.0

Deprecated from version 2.6.0. It is no longer supported and can be removed in future releases. Use d to determine sort order of methods, but this is now controlled by zones and thus unused instead.

Deprecated

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Shipping = new WC_Shipping();
$WC_Shipping->sort_shipping_methods();

Changelog

Deprecated Since 2.6.0 Was previously used to determine sort order of methods, but this is now controlled by zones and thus unused.

Code of WC_Shipping::sort_shipping_methods() WC 5.9.0

public function sort_shipping_methods() {
	wc_deprecated_function( 'sort_shipping_methods', '2.6' );
	return $this->shipping_methods;
}