=== PhoenixForge Portal ===
Contributors: ryanpurvisphoenixforge
Tags: portal, licenses, downloads, self-service, account
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Customer self-service portal with license management, plugin downloads with email capture, and account dashboard.

== Description ==

PhoenixForge Portal turns your WordPress site into a customer-facing self-service hub. Customers can manage their licenses, download plugins, and access their account dashboard without needing to contact support.

**The problem:** Distributing plugins and managing customer licenses manually is tedious. Customers email you for download links, lose their license keys, and you spend time on support instead of building.

**The solution:** PhoenixForge Portal automates the entire customer journey. Email capture on downloads, automatic license key delivery, a self-service portal where customers manage everything themselves.

= Free Features =

* Customer account dashboard
* Plugin download pages with email capture
* License key display and management
* Download history tracking
* Responsive portal frontend
* Shortcode-based page integration

= Pro Features =

* Automatic license key generation and delivery
* Download analytics and reporting
* Customisable portal branding
* Subscription management integration
* API access for external integrations
* Priority support

= Part of the PhoenixForge Suite =

PhoenixForge Portal works hand-in-hand with PhoenixForge Connect. While Connect manages the plugin side, Portal manages the customer side. Together they create a complete plugin distribution platform.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/phoenixforge-portal/`
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Navigate to PhoenixForge Portal in the admin menu
4. Configure your download pages and email capture settings
5. Use the provided shortcodes to add portal pages to your site

== Frequently Asked Questions ==

= Can customers download plugins without an account? =
You can configure whether downloads require registration or just an email address.

= Does it integrate with WooCommerce? =
PhoenixForge Portal has its own lightweight commerce layer. WooCommerce integration is available in Pro.

= Can I customise the portal appearance? =
Yes, the portal inherits your theme styles and offers additional customisation options in Pro.

= Is there a Pro version? =
Yes, Pro adds automatic license delivery, analytics, subscription management, and custom branding. Visit phoenixforge.io for details.

= How does email capture work? =
Visitors enter their email before downloading. Emails are stored locally and can be exported or connected to your email marketing platform.

== Screenshots ==

1. Customer self-service portal dashboard with license keys and download history
2. Plugin download page with email capture form and product details
3. Admin license management panel showing active licenses and customer details
4. Download analytics with email capture metrics and conversion tracking
5. Portal branding settings for customising the customer-facing experience

== Third-Party Services ==

This plugin connects to external services under certain conditions:

= PhoenixForge License Server =
When you activate a Pro license key, the plugin validates it with the PhoenixForge license server.
* Service URL: https://phoenixforge-licenses.phoenixforge.workers.dev
* Privacy Policy: https://phoenixforge.io/privacy
* Terms of Service: https://phoenixforge.io/terms
* Data sent: License key, site URL
* When: On license activation, deactivation, and daily revalidation

= PhoenixForge Update Server =
The plugin checks for new versions from the PhoenixForge update server. This is disabled in WordPress.org distributed builds.
* Service URL: https://phoenixforge-updates.phoenixforge.workers.dev
* Privacy Policy: https://phoenixforge.io/privacy
* Terms of Service: https://phoenixforge.io/terms
* Data sent: Plugin slug and current version
* When: During WordPress update checks (approximately every 12 hours)

= Outbound Webhooks (Pro Feature) =
Pro users can optionally configure webhook URLs to send event data to services like Zapier, Make, or n8n.
* Only active when explicitly configured by the site administrator
* Data sent: Event type, site URL, and event-specific data
* Destination URL is entirely user-controlled

== Changelog ==

= 2.1.0 =
* WordPress.org compliance: updated prefix from pfp to pfptl
* Replaced check_admin_referer with wp_verify_nonce
* Removed load_plugin_textdomain from main plugin file
* Fixed text domains in shared library

= 2.0.0 =
* Initial public release
* Customer self-service portal
* Plugin download pages with email capture
* License management dashboard
* Download history tracking

== Upgrade Notice ==

= 2.0.0 =
Initial release.
