WC_Settings_Shipping::get_shipping_methods()protectedWC 1.0

Get the currently available shipping methods. This method exists to ease unit testing.

Method of the class: WC_Settings_Shipping{}

No Hooks.

Return

Array. Currently available shipping methods.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_shipping_methods();

WC_Settings_Shipping::get_shipping_methods() code WC 8.6.1

protected function get_shipping_methods() {
	return WC()->shipping()->get_shipping_methods();
}