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

    (@justin_k)

    You can setup a custom action to assign whichever role you like upon autoregistration. The actions provided by this plugin are documented on the support page:

    http://www.justin-klein.com/projects/wp-fb-autoconnect

    I’ve been trying various things to achieve this — setting different roles depending on a querystring value on the register page (ie. role=author or role=contributor) — but it keeps passing through to the default role. Anyone have an example of doing this successfully through wp-fb-autoconnect?

    I needed to do this as well but the code wasn’t posted here despite it being marked ‘resolved’ – here’s how I did it:

    function facebookSignupRole($args) {
    		$args['role'] = 'member';
    
    		return $args;
    	}
    	add_filter('wpfb_inserting_user', 'facebookSignupRole');
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-FB-AutoConnect] Grant role upon registration’ is closed to new replies.