includes/class-freemius.php
function get_after_plugin_activation_redirect_url() {
            $url = false;

            if ( ! $this->is_addon() || ! $this->has_free_plan() ) {
                $first_time_path = $this->_menu->get_first_time_path();

                if ( $this->is_activation_mode() ) {
                    $url = $this->get_activation_url();
                } else if ( ! empty( $first_time_path ) ) {
                    $url = $first_time_path;
                } else {
                    $page = '';
                    if ( ! empty( $this->_dynamically_added_top_level_page_hook_name ) ) {
                        if ( $this->is_network_registered() ) {
                            $page = 'account';
                        } else if ( $this->is_network_anonymous() ) {
                            $this->maybe_set_slug_and_network_menu_exists_flag();
                        }
                    }

                    $url = $this->_get_admin_page_url( $page );
                }
            } else {
                $plugin_fs = false;

                if ( $this->is_parent_plugin_installed() ) {
                    $plugin_fs = self::get_parent_instance();
                }

                if ( is_object( $plugin_fs ) ) {
                    if ( ! $plugin_fs->is_registered() ) {
                        // Forward to parent plugin connect when parent not registered.
                        $url = $plugin_fs->get_activation_url();
                    } else {
                        // Forward to account page.
                        $url = $plugin_fs->_get_admin_page_url( 'account' );
                    }
                }
            }

            return $url;
        }
function get_after_plugin_activation_redirect_url() {
            $url = false;

            if ( ! $this->is_addon() || ! $this->has_free_plan() ) {
                $first_time_path = $this->_menu->get_first_time_path();

                if ( $this->is_activation_mode() ) {
                    $url = $this->get_activation_url();
                } else if ( ! empty( $first_time_path ) ) {
                    $url = $first_time_path;
                } else {
                    $page = '';
                    if ( ! empty( $this->_dynamically_added_top_level_page_hook_name ) ) {
                        if ( $this->is_network_registered() ) {
                            $page = 'account';
                        } else if ( $this->is_network_anonymous() ) {
                            $this->maybe_set_slug_and_network_menu_exists_flag();
                        }
                    }

                    $url = $this->_get_admin_page_url( $page );
                }
            } else {
                $plugin_fs = false;

                if ( $this->is_parent_plugin_installed() ) {
                    $plugin_fs = self::get_parent_instance();
                }

                if ( is_object( $plugin_fs ) ) {
                    if ( ! $plugin_fs->is_registered() ) {
                        // Forward to parent plugin connect when parent not registered.
                        $url = $plugin_fs->get_activation_url();
                    } else {
                        // Forward to account page.
                        $url = $plugin_fs->_get_admin_page_url( 'account' );
                    }
                }
            }

            return $url;
        }
function get_after_plugin_activation_redirect_url ( ) { $ url = false ; if ( ! $ this -> is_addon ( ) || ! $ this -> has_free_plan ( ) ) { $ first_time_path = $ this -> _menu -> get_first_time_path ( ) ; if ( $ this -> is_activation_mode ( ) ) { $ url = $ this -> get_activation_url ( ) ; } else if ( ! empty ( $ first_time_path ) ) { $ url = $ first_time_path ; } else { $ page = '' ; if ( ! empty ( $ this -> _dynamically_added_top_level_page_hook_name ) ) { if ( $ this -> is_network_registered ( ) ) { $ page = 'account' ; } else if ( $ this -> is_network_anonymous ( ) ) { $ this -> maybe_set_slug_and_network_menu_exists_flag ( ) ; } } $ url = $ this -> _get_admin_page_url ( $ page ) ; } } else { $ plugin_fs = false ; if ( $ this -> is_parent_plugin_installed ( ) ) { $ plugin_fs = self :: get_parent_instance ( ) ; } if ( is_object ( $ plugin_fs ) ) { if ( ! $ plugin_fs -> is_registered ( ) ) { // Forward to parent plugin connect when parent not registered.
 $ url = $ plugin_fs -> get_activation_url ( ) ; } else { // Forward to account page.
 $ url = $ plugin_fs -> _get_admin_page_url ( 'account' ) ; } } } return $ url ; }
Get the URL of the page that should be loaded right after the plugin activation.

@author Vova Feldman (@svovaf)
@since  1.1.7.4

@return string
Get the URL of the page that should be loaded right after the plugin activation .