Changing default registration role

This topic contains 1 reply, has 2 voices, and was last updated by WCFM Forum WCFM Forum 6 days, 2 hours ago.

  • Author
    Posts
  • #95968
    Avatar
    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
    WCFM Forum
    Keymaster

    Your code is fine, you may use this.

You must be logged in to reply to this topic.