---
id: gk-foundation-is-production-environment
title: "Filter - gk/foundation/is-production-environment"
sidebar_label: "gk/foundation/is-production-environment"
tags:
  - "1.15.0"
---

# Filter: gk/foundation/is-production-environment

Filters whether the site is considered a production environment for Foundation's security-sensitive defaults (e.g. outbound `sslverify`). Return true to enforce the strict production behavior, false to opt out (useful on production hosts with broken CA bundles, or when testing non-production hardening locally).

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $is_production | `bool` | Whether the detected environment is production. |

### Since

- 1.15.0

### Source

Defined in `Helpers/Core.php` at line 421

