=== AddonLogic User Profile Page ===
Contributors: snehalpancholi
Tags: user profile, frontend profile, edit profile, shortcode, user account
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A frontend [upp_profile] shortcode that lets logged-in users view and edit their WordPress profile fields without visiting wp-admin.

== Description ==

AddonLogic User Profile Page gives your logged-in users a clean, accessible frontend form to view and edit their WordPress profile — no admin dashboard required.

**Key Features**

* Shortcode `[upp_profile]` renders a fully functional editable profile form
* Choose which fields to expose: First Name, Last Name, Email, Display Name, Bio, Website URL, and Password Change
* Gravatar avatar display with a click-through link to update it on gravatar.com
* Secure password change: verifies current password, enforces 6-character minimum, and confirms match before saving
* Client-side validation with per-field inline error messages
* CSRF protection via WordPress nonces on every submission
* Success and error feedback notices with auto-fade on success
* Customisable "not logged in" message for guests
* Assets (CSS + JS) are only enqueued on pages that contain the shortcode
* Zero jQuery dependency — Vanilla JS ES6
* Dark-mode aware via CSS custom properties
* Fully translatable with .pot support

== Installation ==

1. Upload the `user-profile-page` folder to `/wp-content/plugins/`.
2. Activate the plugin via **Plugins > Installed Plugins**.
3. Visit **Settings > User Profile Page** to configure options.
4. Add `[upp_profile]` to any page or post.

== Frequently Asked Questions ==

= Can I choose which fields appear? =
Yes. Use the `fields` attribute: `[upp_profile fields="first_name,last_name,email"]`. Omit the attribute to show the defaults configured in Settings.

= Can logged-out users see the form? =
No. They see a configurable message with a link to the login page.

= Is the password change section optional? =
Yes. Exclude `password` from the `fields` attribute to hide it entirely.

= Does the avatar field allow uploads? =
Avatars are managed via Gravatar. The avatar is displayed read-only with a link to gravatar.com.

= Is there a redirect after saving? =
Use the `redirect` attribute: `[upp_profile redirect="https://example.com/thank-you"]`.

== Screenshots ==

1. Frontend profile form with all fields visible
2. Password change section with show/hide toggle
3. Inline validation errors
4. Admin settings page

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
