includes/class-freemius.php
function _install_with_current_user() {
            $this->_logger->entrance();

            if ( $this->is_registered() ) {
                return;
            }

            if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) && fs_request_is_post() ) {
//				check_admin_referer( 'activate_existing_' . $this->_plugin->public_key );

                /**
                 * @author Vova Feldman (@svovaf)
                 * @since  1.1.9 Add license key if given.
                 */
                $license_key = fs_request_get( 'license_secret_key' );

                $this->install_with_current_user( $license_key );
            }
        }
function _install_with_current_user() {
            $this->_logger->entrance();

            if ( $this->is_registered() ) {
                return;
            }

            if ( fs_request_is_action( $this->get_unique_affix() . '_activate_existing' ) && fs_request_is_post() ) {
//				check_admin_referer( 'activate_existing_' . $this->_plugin->public_key );

                /**
                 * @author Vova Feldman (@svovaf)
                 * @since  1.1.9 Add license key if given.
                 */
                $license_key = fs_request_get( 'license_secret_key' );

                $this->install_with_current_user( $license_key );
            }
        }
function _install_with_current_user ( ) { $ this -> _logger -> entrance ( ) ; if ( $ this -> is_registered ( ) ) { return ; } if ( fs_request_is_action ( $ this -> get_unique_affix ( ) . '_activate_existing' ) && fs_request_is_post ( ) ) { //				check_admin_referer( 'activate_existing_' . $this->_plugin->public_key );
 /**
                 * @author Vova Feldman (@svovaf)
                 * @since  1.1.9 Add license key if given.
                 */ $ license_key = fs_request_get ( 'license_secret_key' ) ; $ this -> install_with_current_user ( $ license_key ) ; } }
Install plugin with current logged WP user info.

@author Vova Feldman (@svovaf)
@since  1.0.7
Install plugin with current logged WP user info .