Adding terms ad conditions link in modern theme ajax registration

Please add the given code in your wplms-customizer.php file at the end before ” ?> ” in wplms customizer plugin :

add_filter('vibe_projects_registration_fields','wplms_modern_custom_registration_field');
function wplms_modern_custom_registration_field($fields){
  $settings = WPLMS_tips::init();
  if(!empty($settings->lms_settings['general']['terms_conditions_in_registration'])){
    $link=get_permalink($settings->lms_settings['general']['terms_conditions_in_registration']);
    $fields[] = array(
                'label'=> '<a href="'.$link.'">Terms and conditions</a>',
                'id'=> 'terms_conditions" required data-required="1',
                'field' => 'checkbox',
                 'validation'=>'',
                'class'=> 'form-control no-border',
                'extras'=> array('data-parsley-trigger'=>'change'),
                'required' => 1,
              );
      return $fields;
  }
}

refer : http://prntscr.com/al07ks

Was this article helpful?

1 Comment

Leave A Comment?