get_return_url example

<?php else : ?> <?php $save_text = _x( 'Cannot Activate', 'theme' ); ?> <div id="customize-save-button-wrapper" class="customize-save-button-wrapper disabled" > <button class="button button-primary disabled" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled><?php echo $save_text; ?></button> </div> <?php endif; ?> <span class="spinner"></span> <button type="button" class="customize-controls-preview-toggle"> <span class="controls"><?php _e( 'Customize' ); ?></span> <span class="preview"><?php _e( 'Preview' ); ?></span> </button> <a class="customize-controls-close" href="<?php echo esc_url( $wp_customize->get_return_url() ); ?>"> <span class="screen-reader-text"> <?php                     /* translators: Hidden accessibility text. */
                    _e( 'Close the Customizer and go back to the previous page' );
                    ?> </span> </a> </div> <div id="customize-sidebar-outer-content"> <div id="customize-outer-theme-controls"> <ul class="customize-outer-pane-parent">
'keepAliveCheck'          => 2500,
                'reflowPaneContents'      => 100,
                'previewFrameSensitivity' => 2000,
            ),
            'theme'                  => array(
                'stylesheet'  => $this->get_stylesheet(),
                'active'      => $this->is_theme_active(),
                '_canInstall' => current_user_can( 'install_themes' ),
            ),
            'url'                    => array(
                'preview'       => sanitize_url( $this->get_preview_url() ),
                'return'        => sanitize_url( $this->get_return_url() ),
                'parent'        => sanitize_url( admin_url() ),
                'activated'     => sanitize_url( home_url( '/' ) ),
                'ajax'          => sanitize_url( admin_url( 'admin-ajax.php', 'relative' ) ),
                'allowed'       => array_map( 'sanitize_url', $this->get_allowed_urls() ),
                'isCrossDomain' => $this->is_cross_domain(),
                'home'          => sanitize_url( home_url( '/' ) ),
                'login'         => sanitize_url( $login_url ),
            ),
            'browser'                => array(
                'mobile' => wp_is_mobile(),
                'ios'    => $this->is_ios(),
            ),
Home | Imprint | This part of the site doesn't use cookies.