includes/class-freemius.php
function get_after_activation_url( $filter, $params = array(), $network = null ) {
            if ( $this->is_free_wp_org_theme() &&
                 ( fs_request_has( 'pending_activation' ) ||
                   // For cases when the first time path is set, even though it's a WP.org theme.
                   fs_request_get_bool( $this->get_unique_affix() . '_show_optin' ) )
            ) {
                $first_time_path = '';
            } else {
                $first_time_path = $this->_menu->get_first_time_path();
            }

            if ( $this->_is_network_active &&
                 fs_is_network_admin() &&
                 ! $this->_menu->has_network_menu() &&
                 $this->is_network_registered()
            ) {
                $target_url = $this->get_account_url();
            } else {
                // Default plugin's page.
                $target_url = $this->_get_admin_page_url( '', array(), $network );
            }

            return add_query_arg( $params, $this->apply_filters(
                $filter,
                empty( $first_time_path ) ?
                    $target_url :
                    $first_time_path
            ) );
        }
function get_after_activation_url( $filter, $params = array(), $network = null ) {
            if ( $this->is_free_wp_org_theme() &&
                 ( fs_request_has( 'pending_activation' ) ||
                   // For cases when the first time path is set, even though it's a WP.org theme.
                   fs_request_get_bool( $this->get_unique_affix() . '_show_optin' ) )
            ) {
                $first_time_path = '';
            } else {
                $first_time_path = $this->_menu->get_first_time_path();
            }

            if ( $this->_is_network_active &&
                 fs_is_network_admin() &&
                 ! $this->_menu->has_network_menu() &&
                 $this->is_network_registered()
            ) {
                $target_url = $this->get_account_url();
            } else {
                // Default plugin's page.
                $target_url = $this->_get_admin_page_url( '', array(), $network );
            }

            return add_query_arg( $params, $this->apply_filters(
                $filter,
                empty( $first_time_path ) ?
                    $target_url :
                    $first_time_path
            ) );
        }
function get_after_activation_url ( $ filter , $ params = array ( ) , $ network = null ) { if ( $ this -> is_free_wp_org_theme ( ) && ( fs_request_has ( 'pending_activation' ) || // For cases when the first time path is set, even though it's a WP.org theme.
 fs_request_get_bool ( $ this -> get_unique_affix ( ) . '_show_optin' ) ) ) { $ first_time_path = '' ; } else { $ first_time_path = $ this -> _menu -> get_first_time_path ( ) ; } if ( $ this -> _is_network_active && fs_is_network_admin ( ) && ! $ this -> _menu -> has_network_menu ( ) && $ this -> is_network_registered ( ) ) { $ target_url = $ this -> get_account_url ( ) ; } else { // Default plugin's page.
 $ target_url = $ this -> _get_admin_page_url ( '' , array ( ) , $ network ) ; } return add_query_arg ( $ params , $ this -> apply_filters ( $ filter , empty ( $ first_time_path ) ? $ target_url : $ first_time_path ) ) ; }
Get the URL of the page that should be loaded after the user connect
or skip in the opt-in screen.

@author Vova Feldman (@svovaf)
@since  1.1.3

@param string    $filter Filter name.
@param array     $params Since 1.2.2.7
@param bool|null $network

@return string
Get the URL of the page that should be loaded after the user connect or skip in the opt - in screen .