---
id: gk-foundation-editions-switch-before
title: "Action - gk/foundation/editions/switch/before"
sidebar_label: "gk/foundation/editions/switch/before"
---

# Action: gk/foundation/editions/switch/before

Fires right before an edition switch installs its file. Edition guards let that product's package through until the matching `gk/foundation/editions/switch/after`.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $details | `array` |  |
| ↳ $text_domain | `string` | The product's text domain. |
| ↳ $from | `string` | Installed edition. |
| ↳ $to | `string` | Edition being installed. |

### Since

- TBD: TBD

### Source

Defined in `Licenses/Editions/EditionSwitch.php` at line 490

