# wp-stateless/trunk/static/views/setup_wizard_interface.php

WP-Stateless – Google Cloud Storage, version trunk. 19 lines.

- Page: https://pluginprobe.com/plugins/wp-stateless/trunk/code/static/views/setup_wizard_interface.php
- Raw: https://pluginprobe.com/plugins/wp-stateless/trunk/raw/static/views/setup_wizard_interface.php
- Modified: 2022-05-17T19:35:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-stateless/trunk/code/static/views/setup_wizard_interface.php#L10-L20`.

```php
<?php
  $consoleUrl = 'https://console.stateless.ci';
  $auth_token = \wpCloud\StatelessMedia\Utility::generate_wizard_auth_token();
  $api_root = get_rest_url();
  $is_network = intval(is_network_admin());
  $admin_url = admin_url();
?>

<script>
  (function($) {
    $(document).ready(function(){
      $('#consoleStatelessIframeWrapper')
        .html('<iframe id="console-stateless-wizard" src="<?php esc_html_e($consoleUrl) ?>?wp_nonce=<?php esc_html_e($auth_token) ?>&api_root=<?php esc_html_e($api_root) ?>&is_network=<?php esc_html_e($is_network) ?>&admin_url=<?php esc_html_e($admin_url) ?>" />')
    })
  })(jQuery)
</script>

<div id="consoleStatelessIframeWrapper"></div>
<style>#wpfooter{display:none!important}</style>
```
