How do i display zip code options during checkout [closed]

The postcode field was hidden for Nigeria in 3.5, you can see the reasoning given here: https://github.com/woocommerce/woocommerce/issues/21055 While the Nigeria Postal Service (http://nipost.gov.ng/) introduced Postal Codes a few years ago, they aren’t being used by hardly anyone. Nobody knows their postal codes as the implementation is very convoluted and nothing was done to sensitize the … Read more

Get $order in wp_head

Let’s check both hooks. The woocommerce_thankyou hook is added on line 80 of thankyou.php file. The hook is getting $order->get_id() as an argument. So, you have access to the order ID in when you hook to woocommerce_thankyou in your first example. But the wp_head action which is loading from wp_head() function doesn’t have any argument. … Read more