I am trying to make a custom list of countries . I know how to make it for states . I have used
add_filter( 'woocommerce_states', 'custom_woocommerce_states' );
function custom_woocommerce_states( $states ) {
$states['IN'] = array(
'PB' => 'Punjab'
);
return $states;
}
For making it for states . But how to make a custom list of countries ?
Is this what you want ?