@@ 1071-1073 (lines=3) @@ | ||
1068 | ||
1069 | // For Country. |
|
1070 | $selected_country = give_get_country(); |
|
1071 | if ( ! empty( $give_user_info['billing_country'] ) && '*' !== $give_user_info['billing_country'] ) { |
|
1072 | $selected_country = $give_user_info['billing_country']; |
|
1073 | } |
|
1074 | $countries = give_get_country_list(); |
|
1075 | ||
1076 | // For state. |
|
@@ 1087-1089 (lines=3) @@ | ||
1084 | $selected_state = $give_user_info['card_state']; |
|
1085 | } |
|
1086 | // Get the country code. |
|
1087 | if ( ! empty( $give_user_info['billing_country'] ) && '*' !== $give_user_info['billing_country'] ) { |
|
1088 | $selected_country = $give_user_info['billing_country']; |
|
1089 | } |
|
1090 | $label = __( 'State', 'give' ); |
|
1091 | $states_label = give_get_states_label(); |
|
1092 | // Check if $country code exists in the array key for states label. |