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

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

            if ( ( $this->is_plugin() && fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ) ||
                 // @todo This logic should be improved because it's executed on every load of a theme.
                 $this->is_theme()
            ) {
//				check_admin_referer( $this->_slug . '_activate_new' );

                if ( fs_request_has( 'user_secret_key' ) ) {
                    if ( fs_is_network_admin() && isset( $this->_storage->pending_sites_info ) ) {
                        $pending_sites_info = $this->_storage->pending_sites_info;

                        $this->install_many_pending_with_user(
                            fs_request_get( 'user_id' ),
                            fs_request_get( 'user_public_key' ),
                            fs_request_get( 'user_secret_key' ),
                            fs_request_get_bool( 'is_marketing_allowed', null ),
                            $pending_sites_info['blog_ids'],
                            $pending_sites_info['license_key'],
                            $pending_sites_info['trial_plan_id']
                        );
                    } else {
                        $this->install_with_new_user(
                            fs_request_get( 'user_id' ),
                            fs_request_get( 'user_public_key' ),
                            fs_request_get( 'user_secret_key' ),
                            fs_request_get_bool( 'is_marketing_allowed', null ),
                            fs_request_get( 'install_id' ),
                            fs_request_get( 'install_public_key' ),
                            fs_request_get( 'install_secret_key' ),
                            true,
                            fs_request_get_bool( 'auto_install' )
                        );
                    }
                } else if ( fs_request_has( 'pending_activation' ) ) {
                    $this->set_pending_confirmation( fs_request_get( 'user_email' ), true );
                }
            }
        }
function _install_with_new_user() {
            $this->_logger->entrance();

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

            if ( ( $this->is_plugin() && fs_request_is_action( $this->get_unique_affix() . '_activate_new' ) ) ||
                 // @todo This logic should be improved because it's executed on every load of a theme.
                 $this->is_theme()
            ) {
//				check_admin_referer( $this->_slug . '_activate_new' );

                if ( fs_request_has( 'user_secret_key' ) ) {
                    if ( fs_is_network_admin() && isset( $this->_storage->pending_sites_info ) ) {
                        $pending_sites_info = $this->_storage->pending_sites_info;

                        $this->install_many_pending_with_user(
                            fs_request_get( 'user_id' ),
                            fs_request_get( 'user_public_key' ),
                            fs_request_get( 'user_secret_key' ),
                            fs_request_get_bool( 'is_marketing_allowed', null ),
                            $pending_sites_info['blog_ids'],
                            $pending_sites_info['license_key'],
                            $pending_sites_info['trial_plan_id']
                        );
                    } else {
                        $this->install_with_new_user(
                            fs_request_get( 'user_id' ),
                            fs_request_get( 'user_public_key' ),
                            fs_request_get( 'user_secret_key' ),
                            fs_request_get_bool( 'is_marketing_allowed', null ),
                            fs_request_get( 'install_id' ),
                            fs_request_get( 'install_public_key' ),
                            fs_request_get( 'install_secret_key' ),
                            true,
                            fs_request_get_bool( 'auto_install' )
                        );
                    }
                } else if ( fs_request_has( 'pending_activation' ) ) {
                    $this->set_pending_confirmation( fs_request_get( 'user_email' ), true );
                }
            }
        }
function _install_with_new_user ( ) { $ this -> _logger -> entrance ( ) ; if ( $ this -> is_registered ( ) ) { return ; } if ( ( $ this -> is_plugin ( ) && fs_request_is_action ( $ this -> get_unique_affix ( ) . '_activate_new' ) ) || // @todo This logic should be improved because it's executed on every load of a theme.
 $ this -> is_theme ( ) ) { //				check_admin_referer( $this->_slug . '_activate_new' );
 if ( fs_request_has ( 'user_secret_key' ) ) { if ( fs_is_network_admin ( ) && isset ( $ this -> _storage -> pending_sites_info ) ) { $ pending_sites_info = $ this -> _storage -> pending_sites_info ; $ this -> install_many_pending_with_user ( fs_request_get ( 'user_id' ) , fs_request_get ( 'user_public_key' ) , fs_request_get ( 'user_secret_key' ) , fs_request_get_bool ( 'is_marketing_allowed' , null ) , $ pending_sites_info [ 'blog_ids' ] , $ pending_sites_info [ 'license_key' ] , $ pending_sites_info [ 'trial_plan_id' ] ) ; } else { $ this -> install_with_new_user ( fs_request_get ( 'user_id' ) , fs_request_get ( 'user_public_key' ) , fs_request_get ( 'user_secret_key' ) , fs_request_get_bool ( 'is_marketing_allowed' , null ) , fs_request_get ( 'install_id' ) , fs_request_get ( 'install_public_key' ) , fs_request_get ( 'install_secret_key' ) , true , fs_request_get_bool ( 'auto_install' ) ) ; } } else if ( fs_request_has ( 'pending_activation' ) ) { $ this -> set_pending_confirmation ( fs_request_get ( 'user_email' ) , true ) ; } } }
Install plugin with new user information after approval.

@author Vova Feldman (@svovaf)
@since  1.0.7
Install plugin with new user information after approval .