WordPress at Your Fingertips
function is not described

WC_Shipping::get_shipping_methods() public WC 1.0

Returns all registered shipping methods for usage.

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

No Hooks.

Return

WC_Shipping_Method[].

Usage

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

Code of WC_Shipping::get_shipping_methods() WC 5.9.0

public function get_shipping_methods() {
	if ( is_null( $this->shipping_methods ) ) {
		$this->load_shipping_methods();
	}
	return $this->shipping_methods;
}