Changing default registration role

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #95968
      bolon_campana
      Participant

      I want to ask if there is a GUI way to set the “wcfmvm_registration_default_role”. Currently I’m using the filter you provide inside “wcfmvm-controller-memberships-registration.php” to change it (as seen below), but I wonder if I’m unnecessarily complicating things and missing a setting in the Frontend Manager page.

      
      function standarize_default_role ( $default_wcfmvm_role_name ){
      	$default_wcfmvm_role_name = get_option('default_role');
      	return $default_wcfmvm_role_name;
      }
      add_filter( 'wcfmvm_registration_default_role','standarize_default_role');
    • #96417
      WCFM Forum
      Keymaster

      Your code is fine, you may use this.

Viewing 1 reply thread
  • The topic ‘Changing default registration role’ is closed to new replies.