---
title: "fswa_require_https — Filter Hook"
description: "Controls whether webhook endpoint URLs must use HTTPS."
url: "https://wpwebhooks.org/docs/fswa-require-https/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / fswa\_require\_https

Filter since v1.0.0

# fswa\_require\_https

Controls whether webhook endpoint URLs must use HTTPS.

/ Signature

```
apply_filters( 'fswa_require_https', $require )
```

/ When it fires

Fires when validating the endpoint URL before dispatch.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $require | param | bool | yes | Whether HTTPS is required. Default: \`true\`. |

/ Returns

`bool` Return \`false\` to allow HTTP endpoints.

/ Examples

Allow HTTP in development environments

```
add_filter( 'fswa_require_https', function ( $require ) {
    return ! ( defined( 'WP_LOCAL_DEV' ) && WP_LOCAL_DEV );
} );
```

/ Related

[fswa\_http\_args](https://wpwebhooks.org/docs/fswa-http-args/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"fswa_require_https — Filter Hook — Webhook Actions Docs","description":"Controls whether webhook endpoint URLs must use HTTPS.","url":"https://wpwebhooks.org/docs/fswa-require-https/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
