User::upgrade_to_instructor( $user_id )


Source

File: classes/User.php

	public function upgrade_to_instructor( $user_id ) {
		update_user_meta( $user_id, '_dozent_instructor', 'pending' );

		$auto_approve = (bool) dozent_get_option( 'auto_approve_instructor' );
		if ( $auto_approve || is_admin() ) {
			dozent_instructor_approve( $user_id );
		}
	}