• Resolved psalcedo

    (@psalcedo)


    I have two registration forms for two user profiles: subscribers and professionals.

    Made with CF7 and Frontend Registration CF7.

    With the pro version, is it possible to automatically approve a user profile?

    I am interested in automatically approving subscribing users because professionals have to deliver documentation.`

    //// Spanish ///

    Tengo dos formularios de registro para dos perfiles de usuario:
    subscriptores y profesionales.

    Realizados con CF7 y Frontend Registration CF7.

    Con la version pro ¿es posible aprobar automaticamente un perfil de usuario?

    Me interesa aprobar automáticamente los usuarios subscriptores por que que los profesionales han de entregar una documentacion.`

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @psalcedo,

    Thanks for contacting us,

    I hope you are doing well, We have forwarded this to our technical team and we will get back to you.

    Thanks & Regards

    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @psalcedo,

    You can add this code which will auto-approve the subscriber role users.

    add_filter( 'new_user_approve_default_status', 'nua_user_auto_approve' ,10,2);
    
    function nua_user_auto_approve($status, $user_id) {
    	$user_meta  = get_userdata($user_id);
    	$user_role = $user_meta->roles;
    	if( in_array( 'subscriber', $user_role,true) ) {
    		$status = "approved";
    	}
    	return $status;
    }

    Feel free to contact us if any issue occurs

    Thank you

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @psalcedo,

    We are resolving this thread due to a lack of activity if you have any questions please open a new thread.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘auto aprobe by rol’ is closed to new replies.