=== Profiles ===
Contributors: dizwebdesign
Tags: profiles, members, admin, shortcode
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 0.4.12
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Member profiles with role and per-user feature toggles, admin and front-end profile zones (`[prf_profile]` or composable `[prf_profile_form]` + section shortcodes), synced pages, Tools (upgrade + page sync), backup/restore, duplicate-install warning on Plugins, and admin debug.

== Description ==

Profiles follows the workspace baseline: version from the plugin header (`PRF_VERSION`), `PRF_Upgrades::maybe_upgrade()` and `PRF_Pages::sync_on_activation_and_update()` on activation, after plugin updates, and via **Run update & sync pages** on the dashboard and Tools (`admin_post` action `prf_run_update_sync`). Administrators can use **?prf_debug=1** or **?plugin_debug=1** on wp-admin URLs for a debug notice.

Administrators configure which profile capabilities are available per role under **Profiles → Profile features**, with optional per-user overrides on the user profile screen. Members can use the synced **My profile** page (default `[prf_profile]`; optional `[prf_profile_form]` with section shortcodes) when enabled.

== Installation ==

1. Upload the `profiles` folder to `/wp-content/plugins/` or install the zip from Plugins → Add New → Upload.
2. Activate the plugin through the **Plugins** menu.
3. Open **Profiles** in the admin menu. Use **Tools → Run update & sync pages** after changing front or member profile page settings under **Front page**.

== Changelog ==

= 0.4.12 =
* Avatar uploads store in DWD Gallery first when that plugin is active; WordPress Media Library is the fallback.

= 0.4.8 =
* **DWD Plugins** fly-out: menu uses hub capability; hub administrators can open Profiles admin screens.

= 0.4.7 =
* Profiles dashboard: shortcode reference for front-end tags, example snippet, and note on profile page content vs sync.

= 0.4.6 =
* Removed `prf_profile_front_section_order` filter; added `[prf_profile_form]` plus section shortcodes (`[prf_profile_identity /]`, etc.) for composable My profile pages. `[prf_profile]` unchanged as default.

= 0.4.5 =
* My profile (`[prf_profile]`): form fields grouped into semantic sections with CSS hooks; section order overridable via `prf_profile_front_section_order` filter.

= 0.4.4 =
* Removed two-factor guidance feature (`two_factor_help`) from admin and front profile zones. DB migration 7 re-sanitizes the role feature matrix.

= 0.4.3 =
* Removed per-field visibility (`field_privacy`): no Field visibility matrix in profile UI; theme/avatar author filters removed. Legacy `prf_field_visibility` meta still appears in privacy export/erase until cleared. DB migration 6 re-sanitizes the role feature matrix.

= 0.4.2 =
* Account email feature is display-only: removed links to change email in WordPress from admin and front profile zones.

= 0.4.1 =
* Removed profile features: active sessions list / revoke-all, and application-passwords help link (use WordPress core profile UI if needed). DB migration 5 re-sanitizes the role feature matrix.

= 0.4.0 =
* V2 profile pack (feature-flagged): email change with confirmation link, capped security activity log, allowlisted social URLs (`PRF_Profile_V2`). DB migration to version 4 merges new registry keys into the role matrix.
* Privacy export/erase extended for V2 user meta.

= 0.3.1 =
* Duplicate-install warning on Plugins when multiple folders contain `profiles.php`.
* readme.txt stable tag and changelog synced with releases.

= 0.3.0 =
* MVP profile pack (feature-flagged): account email, password change, profile photo, visibility meta.
* DB migration to version 3; `PRF_Profile_MVP` and `get_user_zone_feature_keys()`.

= 0.2.0 =
* Profile feature registry, role matrix, per-user overrides, admin and front profile zones, `[prf_profile]` shortcode, synced member profile page, profile-zones.css.

= 0.1.0 =
* Initial release: dashboard, front page sync, Tools, backup/restore, privacy hooks, debug query args.
