|
@@ 953-955 (lines=3) @@
|
| 950 |
|
|
| 951 |
|
// For Country. |
| 952 |
|
$selected_country = give_get_country(); |
| 953 |
|
if ( ! empty( $give_user_info['billing_country'] ) && '*' !== $give_user_info['billing_country'] ) { |
| 954 |
|
$selected_country = $give_user_info['billing_country']; |
| 955 |
|
} |
| 956 |
|
$countries = give_get_country_list(); |
| 957 |
|
|
| 958 |
|
// For state |
|
@@ 969-971 (lines=3) @@
|
| 966 |
|
$selected_state = $give_user_info['card_state']; |
| 967 |
|
} |
| 968 |
|
// Get the country code |
| 969 |
|
if ( ! empty( $give_user_info['billing_country'] ) && '*' !== $give_user_info['billing_country'] ) { |
| 970 |
|
$selected_country = $give_user_info['billing_country']; |
| 971 |
|
} |
| 972 |
|
$label = __( 'State', 'give' ); |
| 973 |
|
$states_label = give_get_states_label(); |
| 974 |
|
// Check if $country code exists in the array key for states label. |