WC_Settings_Shipping::get_shipping_methods()
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() WC Settings Shipping::get shipping methods code WC 7.5.1
protected function get_shipping_methods() { return WC()->shipping()->get_shipping_methods(); }