=== U2L AI ===
Contributors: u2lai
Tags: short links, url shortener, branded links, links
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create branded short links for your posts and pages with U2L AI, right from the editor.

== Description ==

U2L AI is a modern link management platform for branded short links, QR codes, click analytics, and custom domains. This plugin brings it into your WordPress editor:

* **Short link meta box** — generate a branded short link for any post or page with one click; it's stored with the post and shown in the editor sidebar.
* **Auto-shorten on publish** — optionally create the short link automatically the first time a post or page is published.
* **Custom domains** — use automatic domain placement, or pin the plugin to one of the domains connected to your U2L AI account.

You need a U2L AI account (free plan works) and an API key from your dashboard.

== Installation ==

1. Install and activate the plugin.
2. Create an API key in your [U2L AI dashboard](https://u2l.ai/app/settings) under Settings → API Keys.
3. Go to Settings → U2L AI, paste the key, and save. The page confirms which account is connected.
4. Open any post or page — the "U2L AI Short Link" box appears in the sidebar.

== Frequently Asked Questions ==

= Do I need a paid U2L AI account? =

No. Every plan, including the free plan, has API access. Paid plans add higher limits, more custom domains, and advanced features.

= Where are the short links stored? =

On your U2L AI account (they appear in your dashboard like any other link) and in the post's meta (`_u2l_short_link`) so the editor can display it.

= Does the plugin change my permalinks? =

No. It only creates an external short link that redirects to your post's permalink.

== External services ==

This plugin talks to the U2L AI API (https://u2l.ai/api/v1) to create short links and validate your API key. The post's public permalink and title are sent when you generate a short link. See the [privacy policy](https://u2l.ai/privacy-policy) and [terms of service](https://u2l.ai/terms-of-service).

== Changelog ==

= 0.1.1 =
* Meta box JavaScript moved to a properly enqueued file.

= 0.1.0 =
* Initial release: settings page, editor meta box, auto-shorten on publish, custom domain support.
