Viewing 5 replies - 1 through 5 (of 5 total)
  • There is a way to do it but not with just the settings of this plugin.

    You would have to first ensure that your two types of users have different roles. Then you can add code to tell the role of the client to register without approval.

    I clearly understand the concept to get this accomplished but I am not yet experienced enough in PHP to be able to provide this for you in a timely manner. Good luck.

    This is not currently supported. It would definitely require some custom coding. More than likely the filters and actions exist to do this. If they are not currently in the code, I’d be happy to add them.

    @josh Harrison I am looking to allow clients to register and business – must wait to be approved first. Has there been any further developments on this? And if not would you be willing to add on this feature? – Much Thanks

    @josh Harrison I am looking to allow clients to register and business – must wait to be approved first. Has there been any further developments on this? And if not would you be willing to add on this feature? – Much Thanks

    You could do what you want using the code that is in place currently.

    Here is the function that is used to add a default status:

    public function add_user_status( $user_id ) {
    	$status = 'pending';
    
    	// This check needs to happen when a user is created in the admin
    	if ( isset( $_REQUEST['action'] ) && 'createuser' == $_REQUEST['action'] ) {
    		$status = 'approved';
    	}
    	update_user_meta( $user_id, 'pw_user_status', $status );
    }

    You could remove that action and add your own. Just assign the status based on the role of the user. Good luck!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Approve some users but not others?’ is closed to new replies.