{"action":"opened","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/9360","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9360/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9360/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/9360/events","html_url":"https://github.com/woothemes/woocommerce/issues/9360","id":111445698,"number":9360,"title":"Should using get_shipping_methods() work?","user":{"login":"pavelevap","id":3008007,"avatar_url":"https://avatars.githubusercontent.com/u/3008007?v=3","gravatar_id":"","url":"https://api.github.com/users/pavelevap","html_url":"https://github.com/pavelevap","followers_url":"https://api.github.com/users/pavelevap/followers","following_url":"https://api.github.com/users/pavelevap/following{/other_user}","gists_url":"https://api.github.com/users/pavelevap/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelevap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelevap/subscriptions","organizations_url":"https://api.github.com/users/pavelevap/orgs","repos_url":"https://api.github.com/users/pavelevap/repos","events_url":"https://api.github.com/users/pavelevap/events{/privacy}","received_events_url":"https://api.github.com/users/pavelevap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-14T17:11:48Z","updated_at":"2015-10-14T17:11:48Z","closed_at":null,"body":"Sorry, I did not know how to reopen #8949 and nobody answered.\r\nIs this code snippet supposed to work?\r\n\r\n```\r\nadd_action( 'woocommerce_review_order_after_shipping', 'woo_shipping_test' );\r\nfunction woo_shipping_test() {\r\n  $available_shipping = WC()->shipping->get_shipping_methods();\r\n  var_dump($available_shipping);\r\n}\r\n```\r\n\r\nMaybe I am missing something, but `get_shipping_methods()` returns `$this->shipping_methods` which will be always only empty `array()`?\r\n\r\nInstead this it should return cached shipping methods? `$this->shipping_methods` is set during  `load_shipping_methods()` function, but this is running only inside `calculate_shipping_for_package()` when there is no cached value (not very often).\r\n\r\nOr is there any other recommended approach to get cached shipping methods inside `woocommerce_review_order_after_shipping` hook?"}}