• Resolved DimaW

    (@dimaw)


    Hi,

    can you tell me how i can add a custom user role to allow access to the registration form?
    The user role should be “candidate”.

    The plugin by default only allow “subscriber” role to access the registration form.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Please add this code to your site –

    add_filter( 'wcfm_allowed_membership_user_roles', function( $allowed_roles ) {
    	return array( 'disable_vendor', 'wcfm_vendor', 'candidate', 'customer', 'subscriber', 'editor', 'contributor', 'author', 'bbp_participant' );
    });

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

    Thank You

    Thread Starter DimaW

    (@dimaw)

    Sorry for my late answer. It works perfectly! 🙂

    Plugin Author WC Lovers

    (@wclovers)

    No worries, thanks for the update 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom user role for registration’ is closed to new replies.