WordPress.org

Ready to get started?Download WordPress

Forums

WP-FB-AutoConnect
[resolved] Grant role upon registration (4 posts)

  1. halasy
    Member
    Posted 1 year ago #

    Hi,
    The plugin works great, thanks for your time!

    My question is how can I set it, or where would I need to modify it, so that a newly registered FB user gets a custom role I specify. Right now the plugin is granting them the default Subscriber role.

    Thanks,
    Tom

    http://wordpress.org/extend/plugins/wp-fb-autoconnect/

  2. justin_k
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. ian92484
    Member
    Posted 1 year ago #

    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?

  4. ollie101
    Member
    Posted 1 year ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags