You've already forked wc-tier-and-package-prices
-
Release 1.4.1
StableAll checks were successfulCreate Release Package / build-release (push) Successful in 1m3sreleased this
2026-02-03 10:55:57 +00:00 | 1 commits to main since this releaseAdded
-
Localhost License Bypass: License validation is automatically bypassed for localhost environments
- Supports localhost, 127.0.0.1, ::1 (IPv6),
*.localhost,*.local,*.test,*.example,*.invalid - Private IP ranges (Docker, VMs) are also recognized as localhost
- Displays "(Localhost environment - license validation bypassed)" in License Status
- Supports localhost, 127.0.0.1, ::1 (IPv6),
-
Self-Licensing Bypass: License validation is bypassed when the site URL matches the license server URL
- Useful for testing the plugin on the license server itself
- Displays "(Self-licensing server - license validation bypassed)" in License Status
-
Auto-Update System: Plugin can now receive updates directly from the license server
- New "Auto-Updates" settings tab under WooCommerce > Tier & Package Prices
- Enable Update Notifications: Toggle to check for available updates (default: enabled)
- Automatically Install Updates: Optional auto-install when WordPress performs background updates
- Check Frequency: Configurable hours between update checks (1-168 hours, default: 12)
- Update Status: Shows current version and available update with "Check for Updates" button
- Updates appear in WordPress Dashboard > Updates with full plugin info
-
New Classes:
WC_TPP_License_Checker: Singleton class handling license validation with localhost/self-licensing bypassWC_TPP_Update_Checker: Singleton class integrating with WordPress plugin update system
Technical Details
License Checker Features:
is_localhost(): Detects localhost environments using multiple patternsis_self_licensing(): Compares license server URL with site URLis_license_valid(): Main entry point with bypass logicget_bypass_reason(): Returns 'localhost', 'self_licensing', or null- Cached validation (1 hour success, 5 minutes error)
Update Checker Features:
- Hooks into
pre_set_site_transient_update_pluginsfor update detection - Hooks into
plugins_apifor update modal information - Hooks into
http_request_argsfor license authentication - Hooks into
auto_update_pluginfor background updates - Can be disabled via
WC_TPP_DISABLE_AUTO_UPDATEconstant
New Settings Options:
wc_tpp_update_notification_enabled(yes/no, default: yes)wc_tpp_auto_install_enabled(yes/no, default: no)wc_tpp_update_check_frequency(number, default: 12)
Update Server Endpoint:
- POST to
/wp-json/wc-licensed-product/v1/update-check - Request body:
{license_key, domain, plugin_slug, current_version} - Response:
{success, update_available, version, download_url, ...}
Downloads
-
-
Release 1.4.0
StableAll checks were successfulCreate Release Package / build-release (push) Successful in 1m4sreleased this
2026-01-29 19:34:16 +00:00 | 2 commits to main since this releaseAdded
- Gitea CI/CD Release Pipeline: Automated release workflow triggered on version tags
- Validates plugin version matches tag version
- Installs production Composer dependencies
- Compiles translation files (.po to .mo)
- Creates release package with proper exclusions
- Generates SHA256 checksum
- Publishes release to Gitea with changelog notes
Downloads
- Gitea CI/CD Release Pipeline: Automated release workflow triggered on version tags