=== ClearDraft ===
Contributors: cleardraft
Tags: legal review, compliance, content review
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Submit content for legal review via ClearDraft.

== Description ==

ClearDraft adds a sidebar panel to the WordPress block editor that lets you
submit posts and pages for automated legal and compliance review. Get feedback
on potential legal issues directly within your editing workflow, without
switching between tools.

When you submit a post for review, ClearDraft analyses the content for legal
and compliance risks and returns a report with identified issues. You can track
the review status from the editor sidebar and open the full report when the
review is complete.

ClearDraft requires an active ClearDraft account and API key. Visit
[cleardraft.com](https://www.cleardraft.com) to learn more.

= External Service =

This plugin sends data to the [ClearDraft](https://www.cleardraft.com) API for
automated legal and compliance review. When a user submits a post for review,
the following data is transmitted to the ClearDraft service:

* Post title
* Post content
* The submitting user's email address

An API key (configured in Settings > ClearDraft) is sent with each request to
authenticate your organization.

Data is transmitted over HTTPS to the ClearDraft API endpoint configured in
your plugin settings.

Additionally, when a user opens the WordPress block editor, the plugin sends
the current user's email address to the ClearDraft API to verify that the user
has an active ClearDraft account. This access check is required for the plugin
to function, and the result is cached locally for 15 minutes to minimise
requests. No post content is transmitted during this check.

Please review ClearDraft's [Privacy Policy](https://www.cleardraft.com/privacy-policy)
and [Terms of Business](https://www.cleardraft.com/terms-of-business) before use.

== Installation ==

1. Upload the `cleardraft` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to Settings > ClearDraft to configure your API URL and API key.

== Frequently Asked Questions ==

= Do I need a ClearDraft account? =

Yes. You need an active ClearDraft account and API key to use this plugin. You
can configure your credentials under Settings > ClearDraft.

= What data is sent to ClearDraft? =

When you submit a post for review, the plugin sends the post title, post
content, and your WordPress user email address to the ClearDraft API. An API
key is included with each request for authentication.

= Does ClearDraft replace legal advice? =

No. ClearDraft provides automated analysis to flag potential issues, but it
does not constitute legal advice. Always consult a qualified legal professional
for definitive guidance.

= Which post types are supported? =

ClearDraft works with any post type that uses the WordPress block editor,
including posts and pages.

== Screenshots ==

1. The ClearDraft sidebar panel in the block editor, showing a post ready for submission.
2. Review in progress with status indicator.
3. Completed review with issue count and link to the full report.
4. The ClearDraft settings page under Settings > ClearDraft.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
