includes/class-freemius.php
private function link_license_2_user( $license_id, $user_id ) {
            $license_ids = $this->get_user_linked_license_ids( $user_id );

            if ( in_array( $license_id, $license_ids ) ) {
                // License already linked.
                return;
            }

            $license_ids[] = $license_id;

            $this->set_user_linked_license_ids( $user_id, $license_ids );
        }
private function link_license_2_user( $license_id, $user_id ) {
            $license_ids = $this->get_user_linked_license_ids( $user_id );

            if ( in_array( $license_id, $license_ids ) ) {
                // License already linked.
                return;
            }

            $license_ids[] = $license_id;

            $this->set_user_linked_license_ids( $user_id, $license_ids );
        }
private function link_license_2_user ( $ license_id , $ user_id ) { $ license_ids = $ this -> get_user_linked_license_ids ( $ user_id ) ; if ( in_array ( $ license_id , $ license_ids ) ) { // License already linked.
 return ; } $ license_ids [ ] = $ license_id ; $ this -> set_user_linked_license_ids ( $ user_id , $ license_ids ) ; }
Link a specified license ID to a given user.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param number $license_id
@param number $user_id
Link a specified license ID to a given user .