In WwooCommerce, I am trying to add the ship to different address information in my admin email.
How can I check if the checkbox to ship to different address from checkout page is checked?
I tried to use:
$ship_to_different_address = get_option( 'woocommerce_ship_to_destination' ) === 'shipping' ? 1 : 0;
if($ship_to_different_address == 1):
//the additional email text here
endif;
But this seems not working. Any ideas?