includes/class-freemius.php
private function install_many_pending_with_user(
            $user_id,
            $user_public_key,
            $user_secret_key,
            $is_marketing_allowed,
            $site_ids,
            $license_key = false,
            $trial_plan_id = false,
            $redirect = true
        ) {
            $user = $this->setup_user( $user_id, $user_public_key, $user_secret_key );

            if ( ! is_null( $is_marketing_allowed ) ) {
                $this->disable_opt_in_notice_and_lock_user();
            }

            $sites = array();
            foreach ( $site_ids as $site_id ) {
                $sites[] = $this->get_site_info( array( 'blog_id' => $site_id ) );
            }

            $this->install_with_user( $user, $license_key, $trial_plan_id, $redirect, true, $sites );
        }
private function install_many_pending_with_user(
            $user_id,
            $user_public_key,
            $user_secret_key,
            $is_marketing_allowed,
            $site_ids,
            $license_key = false,
            $trial_plan_id = false,
            $redirect = true
        ) {
            $user = $this->setup_user( $user_id, $user_public_key, $user_secret_key );

            if ( ! is_null( $is_marketing_allowed ) ) {
                $this->disable_opt_in_notice_and_lock_user();
            }

            $sites = array();
            foreach ( $site_ids as $site_id ) {
                $sites[] = $this->get_site_info( array( 'blog_id' => $site_id ) );
            }

            $this->install_with_user( $user, $license_key, $trial_plan_id, $redirect, true, $sites );
        }
private function install_many_pending_with_user ( $ user_id , $ user_public_key , $ user_secret_key , $ is_marketing_allowed , $ site_ids , $ license_key = false , $ trial_plan_id = false , $ redirect = true ) { $ user = $ this -> setup_user ( $ user_id , $ user_public_key , $ user_secret_key ) ; if ( ! is_null ( $ is_marketing_allowed ) ) { $ this -> disable_opt_in_notice_and_lock_user ( ) ; } $ sites = array ( ) ; foreach ( $ site_ids as $ site_id ) { $ sites [ ] = $ this -> get_site_info ( array ( 'blog_id' => $ site_id ) ) ; } $ this -> install_with_user ( $ user , $ license_key , $ trial_plan_id , $ redirect , true , $ sites ) ; }
Install plugin with user.

@author Leo Fajardo (@leorw)
@since  2.0.0

@param number    $user_id
@param string    $user_public_key
@param string    $user_secret_key
@param bool|null $is_marketing_allowed
@param array     $site_ids
@param bool      $license_key
@param bool      $trial_plan_id
@param bool      $redirect

@return string If redirect is `false`, returns the next page the user should be redirected to.
Install plugin with user .