# License

The license connects the site to SleekWP's store; the standalone SleekView
plugin uses it to receive updates. Everything else in SleekView works without
it.

## On the License page

Open View's License page: in the suite it sits below View in the workspace
sidebar, and in the standalone plugin it is part of `SleekWP > View`. The
page, **View license**, shows the license status as **Valid**, **Invalid** or
**Inactive**.

1. Enter the key in **License key**.
2. Choose **Activate license**.

The page asks the store to activate the key for this site and shows the
result. Only a valid key is kept; an invalid one is discarded.

**Deactivate license** asks you to confirm, then asks the store to release
the key for this site and removes the key and its status.

The page is hidden when the standalone plugin is
[white-labelled](/docs/white-label.md).

## With a constant

You can provide the key in PHP instead, for example in `wp-config.php`:

```php
define( 'SLEEK_VIEW_LICENSE', 'YOUR LICENSE KEY' );
```

While the constant holds a non-empty key, the License page shows that key
masked and refuses to activate or deactivate a key entered on the page. The
constant does not activate the key with the store by itself.
