You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose activation URLs through stable global functions
Consumers were told to resolve Activation_Url from the container, which ties
them to whichever Harbor version's class their own copy ships rather than the
loaded, highest-version one. Add lw_harbor_get_activation_url() and
lw_harbor_get_product_activation_url() -- version-keyed global functions, the
stable public API -- wrapping Activation_Url::get_base() and for_product().
Point the activation-URL guide and the API reference at the functions instead
of the class.
Claude-Session: https://claude.ai/code/session_011uxoDruAaZXzRy3hk8mr4W
entry: Added a reusable activation URL API. Host plugins can build Liquid Web portal activation URLs from PHP via the Activation_Url service, or in the browser via the shared lw-harbor-activation script, which exposes window.lwHarbor.buildActivationUrl()
3
+
entry: Added a reusable activation URL API. Host plugins can build Liquid Web portal activation URLs from PHP via the lw_harbor_get_activation_url() and lw_harbor_get_product_activation_url() global functions, or in the browser via the shared lw-harbor-activation script, which exposes window.lwHarbor.buildActivationUrl()
Copy file name to clipboardExpand all lines: src/Harbor/API/Functions/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,8 @@ Strauss rewrites class references at parse time. `License_Repository::class` ins
125
125
|`lw_harbor_is_feature_enabled( $slug )`| Whether a feature is in the catalog AND currently enabled/active |
126
126
|`lw_harbor_is_feature_available( $slug )`| Whether a feature exists in the catalog, regardless of enabled state |
127
127
|`lw_harbor_get_license_page_url()`| Returns the admin URL for the Harbor Feature Manager page |
128
+
|`lw_harbor_get_activation_url( $redirect_url = null )`| Returns a portal activation URL for this site, returning the user to `$redirect_url`|
129
+
|`lw_harbor_get_product_activation_url( $slug, $tier, $redirect = null )`| The activation URL scoped to a product and tier via `sku`|
128
130
|`lw_harbor_get_licensed_domain()`| Returns the domain Harbor uses for licensing on the current site |
129
131
|`lw_harbor_register_submenu( $parent_slug )`| Appends a Licensing submenu item under a plugin's top-level admin menu |
130
132
|`lw_harbor_display_legacy_license_page_notice( $product_name = '' )`| Renders an info notice on a plugin's legacy license page pointing users to the unified system |
0 commit comments