Skip to content

Commit

Permalink
Fix - Privacy field value
Browse files Browse the repository at this point in the history
  • Loading branch information
dipuchaudhary committed Oct 2, 2023
1 parent acb9efe commit 12d0fab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/class-ur-emailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ public static function ur_profile_details_changed_mail( $user_id, $form_id ) {
$value = implode( ',',$upload_data );
}
}

if ( 'privacy_policy' === $form_data['field_key'] && '' !== $value ) {
$value = esc_html__( 'Accepted', 'user-registration' );
}

if ( 'country' === $form_data['field_key'] && '' !== $value ) {
$country_class = ur_load_form_field_class( $form_data['field_key'] );
$countries = $country_class::get_instance()->get_country();
Expand Down

0 comments on commit 12d0fab

Please sign in to comment.