# clanbite.popup.shouldOpen

Filters whether a Clanbite popup may open. Return `false` to keep it closed.

```php
wp.hooks.applyFilters( 'clanbite.popup.shouldOpen', boolean allow, {{ name: string, root: Element }} detail )
```

## Parameters

- `$allow` (boolean) Default `true`.
- `$detail` ({{ name: string, root: Element }}) `name` identifies the popup; `root` is its element.

## Changelog

| Version | Description |
| --- | --- |
| 1.6.3 | Updated |
| 1.3.0 | Introduced |
