Title: Emberly Popups
Author: Emberly Digital
Published: <strong>9 mei 2025</strong>
Last modified: 27 juli 2025

---

Plugins zoeken

![](https://ps.w.org/emberly-popups/assets/banner-772x250.png?rev=3291468)

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

![](https://ps.w.org/emberly-popups/assets/icon-256x256.png?rev=3291468)

# Emberly Popups

 Door [Emberly Digital](https://profiles.wordpress.org/emberlydigital/)

[Download](https://downloads.wordpress.org/plugin/emberly-popups.1.3.zip)

 * [Details](https://nl.wordpress.org/plugins/emberly-popups/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/emberly-popups/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/emberly-popups/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/emberly-popups/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/emberly-popups/)

## Beschrijving

**Emberly Popups** is a simple PHP function that generates ARIA‑compliant modal 
popups. Great for newsletters, surveys, announcements, or any call‑to‑action:

 * Auto‑open after a configurable delay
 * Cookie‑ or session‑based “show once” control
 * Repeat interval (milliseconds) between popups
 * Shortcode support inside popup content
 * Adjustable width and padding
 * Accessible markup with proper ARIA roles

### Usage

### PHP 8+ (named arguments)

“`php
 emberly_popup( title : ‘Welcome!’, content : ‘

Thanks for visiting our site. Don’t miss our latest offers!

‘,
 id : ‘welcome-popup’, width : ’50rem’, padding : ‘3rem’, echo : true, output_shortcodes:
true, auto_open : true, delay : 2000, show_once : false, persistence_method: ‘session’,
show_interval_ms : 1800000 // 30 minutes ); `<h3>PHP 7 & earlier (ordered arguments)
</h3>\`\`\`php emberly_popup( '', // $title '<p>Thanks for visiting our site. Don't
miss our latest offers!</p>', 'category-survey-popup', // $id '50rem', // $width'
3rem', // $padding true, // $echo true, // $output_shortcodes true, // $auto_open
2000, // $delay false, // $show_once 'session', // $persistence_method 1800000 //
$show_interval_ms );

### Manual triggers

Anywhere in your markup, add:
 `html <a href="#" em-popup-trigger-id="welcome-popup"
>Open Welcome Popup</a> The em-popup-trigger-id value must match the $id you set
in emberly_popup().

### Parameters

 Parameter
 Type Default Description

 title
 string ” Popup heading text.

 content
 string ” HTML for the popup’s body.

 id
 string ” Unique popup identifier (required for cookies/sessions & triggers).

 width
 string ’60rem’ CSS max-width for the popup container.

 padding
 string ‘3rem’ Inner padding inside the popup.

 echo
 bool true Echo the markup immediately (false to return as string).

 output_shortcodes
 bool false Process WordPress shortcodes in `content`.

 auto_open
 bool false Automatically open after `delay` ms.

 delay
 int 0 Milliseconds to wait before auto-open.

 show_once
 bool false If true, shows only once per session/cookie period.

 persistence_method
 string ‘cookie’ Where to store “shown” flag: ‘cookie’ or ‘session’.

 show_interval_ms
 int 0 Minimum interval (ms) before showing again. 0 disables 
repeats.

 debug
 bool false Log internal events to browser console (load, open, cookies, 
scroll lock).

### Debugging

Add `debug: true` (PHP 8+) or append `true` as the 13th argument (PHP 7) to enable
console logging:

    ```
    `php
    ```

// PHP 8+ example
 emberly_popup( title : ‘Debug Popup’, content: ‘

Debugging is on!

‘,
 id : ‘debug-popup’, debug : true ); `

## Installatie

 1. Copy the **emberly_popup()** function into your theme’s `functions.php` or a custom
    plugin.
 2. Enqueue or include the popup’s CSS and JS assets.
 3. Ensure `assets/icons/close.svg` exists (used for the close button).
 4. Call `emberly_popup()` anywhere in your PHP templates.

## FAQ

### What if I don’t set an ID?

An ID is required for cookies/sessions and manual triggers; omit at your own risk.

### Can I use shortcodes in my popup?

Yes—set `output_shortcodes` to `true`.

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“Emberly Popups” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

 *   [ Emberly Digital ](https://profiles.wordpress.org/emberlydigital/)

[Vertaal “Emberly Popups” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/emberly-popups)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/emberly-popups/), haal
de [SVN repository](https://plugins.svn.wordpress.org/emberly-popups/) op, of abonneer
je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/emberly-popups/)
via [RSS](https://plugins.trac.wordpress.org/log/emberly-popups/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3

 * Fixed minor CSS selector issue in nested themes.
 * Added `debug` parameter to PHP 7 ordered args example.
 * Improved README formatting for WP.org.
 * Fixed trigger logging order. Now logs triggers before content by moving the trigger
   handler up to the body.
 * Added compatibility to override smooth scrolling when closing a popup.

#### 1.2

 * Added `debug` logging support.
 * Support for PHP 8 named arguments.

#### 1.0

 * Initial public release.

## Meta

 *  Versie **1.3**
 *  Laatst geüpdatet **1 jaar geleden**
 *  Actieve installaties **10+**
 *  WordPress versie ** 5.0 of nieuwer **
 *  Getest t/m **6.8.11**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/emberly-popups/)
 * Tags
 * [accessible](https://nl.wordpress.org/plugins/tags/accessible/)[developer](https://nl.wordpress.org/plugins/tags/developer/)
   [modal](https://nl.wordpress.org/plugins/tags/modal/)[overlay](https://nl.wordpress.org/plugins/tags/overlay/)
   [popup](https://nl.wordpress.org/plugins/tags/popup/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/emberly-popups/advanced/)

## Waarderingen

Er zijn nog geen beoordelingen ingediend.

[Je beoordeling](https://wordpress.org/support/plugin/emberly-popups/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/emberly-popups/reviews/)

## Bijdragers

 *   [ Emberly Digital ](https://profiles.wordpress.org/emberlydigital/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/emberly-popups/)