=== AddonLogic Frontend Post Submission ===
Contributors: snehalpancholi
Tags: frontend post submission, user generated content, ugc, submit post, guest posting
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let logged-in users submit posts from the frontend via [submit_post]. Submissions land as pending drafts for admin review.

== Description ==

AddonLogic Frontend Post Submission gives your community a polished, accessible form to contribute posts directly from the frontend — no WordPress admin access required.

**Key Features:**

* Simple `[submit_post]` shortcode — place it on any page
* Title, content, excerpt, category, tags, and featured image fields
* Drag-and-drop image upload with instant preview
* Image type and size validation (client and server-side)
* Save Draft or Submit for Review with one click
* Admin email notification on new submission
* Quick-approve button in the dedicated Submissions screen
* Per-role access control — choose which roles can submit
* Configurable submission status: pending, draft, or publish immediately
* Word count and character count indicators
* Minimum word count enforcement
* Redirect after successful submission
* Works with any public post type
* Dark-mode aware, fully responsive
* Vanilla JavaScript — zero jQuery dependency

== Installation ==

1. Upload the `frontend-post-submission` folder to `/wp-content/plugins/`
2. Activate the plugin through **Plugins → Installed Plugins**
3. Go to **FPS Settings** to configure roles, fields, and notifications
4. Add `[submit_post]` to any page or post

== Frequently Asked Questions ==

= Will unregistered visitors see the form? =
No. Guests see the configurable login message with a link to the login page.

= Which roles can submit posts? =
Any roles you tick in **FPS Settings → Permissions**. Defaults to all roles from Subscriber upward.

= Can I let posts go live immediately? =
Yes — set **Submission Status** to *Publish Immediately* in settings.

= Can I use it for custom post types? =
Yes — choose any public post type from the Default Post Type dropdown, or override per-form with the `post_type` shortcode attribute.

= Is the image upload safe? =
Yes. File type (MIME), size, and WordPress media upload APIs are all validated server-side in addition to client-side checks.

== Changelog ==

= 1.0.0 =
* Initial release

== Screenshots ==

1. Frontend submission form with drag-and-drop image upload
2. Settings page — permissions, fields, and notifications
3. Submissions screen with quick-approve action
