# Activating

The license connects the site to SleekWP's store; the standalone SleekMotion
plugin uses it to receive updates. Motion's animations and settings work
whether or not a license is active.

## On the License page

Open Motion's License page: in the suite it sits beside Motion's settings in
the workspace, and in the standalone plugin under `SleekWP > Motion`.

1. Enter the license key.
2. Activate it.

The page asks the store to activate the key for this site and shows the
result as valid or invalid. Only a valid key is kept; an invalid one is
discarded, so the page keeps showing no key. Deactivating asks the store to
release the key for this site and removes it, together with the 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_MOTION_LICENSE', 'YOUR LICENSE KEY' );
```

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

## Uninstalling

Deleting the plugin removes nothing: Motion's settings, with its breakpoints,
presets and defaults, and the license stay, so reinstalling Motion picks them
up again. The animations are written on your elements and stay with them.
