Skip to content
Advertisement

Tag: woocommerce

How to get WooCommerce shipping methods cost and settings?

I’m trying to get all shipping methods, with their rates and title. But when i use WC()->shipping->get_shipping_methods() it will only return empty rates array, and empty title string. Here is a dump: I tried to Google the issue, but nothing really helped. Does anyone know what could be the issue? Thanks a bunch! Answer Because WC()->shipping->get_shipping_methods() doesn’t load the shipping

Advertisement