[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fbnVwxJuh6zWhkBcBN3-C0980WA0Qj_EsVfZ7AASddMQ":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"emberlydigital","Emberly Digital","https:\u002F\u002Fprofiles.wordpress.org\u002Femberlydigital\u002F",1,10,100,30,94,"2026-04-04T18:24:51.530Z",[14],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":8,"downloaded":20,"rating":21,"num_ratings":21,"last_updated":22,"tested_up_to":23,"requires_at_least":24,"requires_php":25,"tags":26,"homepage":25,"download_link":32,"security_score":9,"vuln_count":21,"unpatched_count":21,"last_vuln_date":33,"fetched_at":34},"emberly-popups","Emberly Popups","1.3","\u003Cp>\u003Cstrong>Emberly Popups\u003C\u002Fstrong> is a simple PHP function that generates ARIA‑compliant modal popups. Great for newsletters, surveys, announcements, or any call‑to‑action:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Auto‑open after a configurable delay  \u003C\u002Fli>\n\u003Cli>Cookie‑ or session‑based “show once” control  \u003C\u002Fli>\n\u003Cli>Repeat interval (milliseconds) between popups  \u003C\u002Fli>\n\u003Cli>Shortcode support inside popup content  \u003C\u002Fli>\n\u003Cli>Adjustable width and padding  \u003C\u002Fli>\n\u003Cli>Accessible markup with proper ARIA roles\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Usage\u003C\u002Fh3>\n\u003Ch3>PHP 8+ (named arguments)\u003C\u002Fh3>\n\u003Cp>“`php\u003Cbr \u002F>\nemberly_popup(\u003Cbr \u002F>\n    title            : ‘Welcome!’,\u003Cbr \u002F>\n    content          : ‘\u003C\u002Fp>\n\u003Cp>Thanks for visiting our site. Don’t miss our latest offers!\u003C\u002Fp>\n\u003Cp>‘,\u003Cbr \u002F>\n    id               : ‘welcome-popup’,\u003Cbr \u002F>\n    width            : ’50rem’,\u003Cbr \u002F>\n    padding          : ‘3rem’,\u003Cbr \u002F>\n    echo             : true,\u003Cbr \u002F>\n    output_shortcodes: true,\u003Cbr \u002F>\n    auto_open        : true,\u003Cbr \u002F>\n    delay            : 2000,\u003Cbr \u002F>\n    show_once        : false,\u003Cbr \u002F>\n    persistence_method: ‘session’,\u003Cbr \u002F>\n    show_interval_ms : 1800000  \u002F\u002F 30 minutes\u003Cbr \u002F>\n);\u003Cbr \u002F>\n    \u003Ccode>\u003Ch3>PHP 7 & earlier (ordered arguments)\u003C\u002Fh3>```php\u003Cbr \u002F>\nemberly_popup(\u003Cbr \u002F>\n    '',                               \u002F\u002F $title\u003Cbr \u002F>\n    '\u003Cp>Thanks for visiting our site. Don't miss our latest offers!\u003C\u002Fp>',\u003Cbr \u002F>\n    'category-survey-popup',          \u002F\u002F $id\u003Cbr \u002F>\n    '50rem',                          \u002F\u002F $width\u003Cbr \u002F>\n    '3rem',                           \u002F\u002F $padding\u003Cbr \u002F>\n    true,                             \u002F\u002F $echo\u003Cbr \u002F>\n    true,                             \u002F\u002F $output_shortcodes\u003Cbr \u002F>\n    true,                             \u002F\u002F $auto_open\u003Cbr \u002F>\n    2000,                             \u002F\u002F $delay\u003Cbr \u002F>\n    false,                            \u002F\u002F $show_once\u003Cbr \u002F>\n    'session',                        \u002F\u002F $persistence_method\u003Cbr \u002F>\n    1800000                           \u002F\u002F $show_interval_ms\u003Cbr \u002F>\n);\u003C\u002Fcode>\u003C\u002Fp>\n\u003Ch3>Manual triggers\u003C\u002Fh3>\n\u003Cp>Anywhere in your markup, add:\u003Cbr \u002F>\n    \u003Ccode>html\u003Cbr \u002F>\n\u003Ca href=\"#\" em-popup-trigger-id=\"welcome-popup\">Open Welcome Popup\u003C\u002Fa>\u003C\u002Fcode>\u003Cbr \u002F>\nThe \u003Ccode>em-popup-trigger-id\u003C\u002Fcode> value must match the \u003Ccode>$id\u003C\u002Fcode> you set in \u003Ccode>emberly_popup()\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch3>Parameters\u003C\u002Fh3>\n\u003Cp>  Parameter\u003Cbr \u002F>\n  Type\u003Cbr \u002F>\n  Default\u003Cbr \u002F>\n  Description\u003C\u002Fp>\n\u003Cp>  title\u003Cbr \u002F>\n  string\u003Cbr \u002F>\n  ”\u003Cbr \u002F>\n  Popup heading text.\u003C\u002Fp>\n\u003Cp>  content\u003Cbr \u002F>\n  string\u003Cbr \u002F>\n  ”\u003Cbr \u002F>\n  HTML for the popup’s body.\u003C\u002Fp>\n\u003Cp>  id\u003Cbr \u002F>\n  string\u003Cbr \u002F>\n  ”\u003Cbr \u002F>\n  Unique popup identifier (required for cookies\u002Fsessions & triggers).\u003C\u002Fp>\n\u003Cp>  width\u003Cbr \u002F>\n  string\u003Cbr \u002F>\n  ’60rem’\u003Cbr \u002F>\n  CSS max-width for the popup container.\u003C\u002Fp>\n\u003Cp>  padding\u003Cbr \u002F>\n  string\u003Cbr \u002F>\n  ‘3rem’\u003Cbr \u002F>\n  Inner padding inside the popup.\u003C\u002Fp>\n\u003Cp>  echo\u003Cbr \u002F>\n  bool\u003Cbr \u002F>\n  true\u003Cbr \u002F>\n  Echo the markup immediately (false to return as string).\u003C\u002Fp>\n\u003Cp>  output_shortcodes\u003Cbr \u002F>\n  bool\u003Cbr \u002F>\n  false\u003Cbr \u002F>\n  Process WordPress shortcodes in \u003Ccode>content\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>  auto_open\u003Cbr \u002F>\n  bool\u003Cbr \u002F>\n  false\u003Cbr \u002F>\n  Automatically open after \u003Ccode>delay\u003C\u002Fcode> ms.\u003C\u002Fp>\n\u003Cp>  delay\u003Cbr \u002F>\n  int\u003Cbr \u002F>\n  0\u003Cbr \u002F>\n  Milliseconds to wait before auto-open.\u003C\u002Fp>\n\u003Cp>  show_once\u003Cbr \u002F>\n  bool\u003Cbr \u002F>\n  false\u003Cbr \u002F>\n  If true, shows only once per session\u002Fcookie period.\u003C\u002Fp>\n\u003Cp>  persistence_method\u003Cbr \u002F>\n  string\u003Cbr \u002F>\n  ‘cookie’\u003Cbr \u002F>\n  Where to store “shown” flag: ‘cookie’ or ‘session’.\u003C\u002Fp>\n\u003Cp>  show_interval_ms\u003Cbr \u002F>\n  int\u003Cbr \u002F>\n  0\u003Cbr \u002F>\n  Minimum interval (ms) before showing again. 0 disables repeats.\u003C\u002Fp>\n\u003Cp>  debug\u003Cbr \u002F>\n  bool\u003Cbr \u002F>\n  false\u003Cbr \u002F>\n  Log internal events to browser console (load, open, cookies, scroll lock).\u003C\u002Fp>\n\u003Ch3>Debugging\u003C\u002Fh3>\n\u003Cp>Add \u003Ccode>debug: true\u003C\u002Fcode> (PHP 8+) or append \u003Ccode>true\u003C\u002Fcode> as the 13th argument (PHP 7) to enable console logging:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>`php\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u002F\u002F PHP 8+ example\u003Cbr \u002F>\nemberly_popup(\u003Cbr \u002F>\n    title : ‘Debug Popup’,\u003Cbr \u002F>\n    content: ‘\u003C\u002Fp>\n\u003Cp>Debugging is on!\u003C\u002Fp>\n\u003Cp>‘,\u003Cbr \u002F>\n    id    : ‘debug-popup’,\u003Cbr \u002F>\n    debug : true\u003Cbr \u002F>\n);\u003Cbr \u002F>\n    `\u003C\u002Fp>\n","Lightweight, accessible popups for WordPress—made by developers, for developers.",1008,0,"2025-07-27T19:21:00.000Z","6.8.5","5.0","",[27,28,29,30,31],"accessible","developer","modal","overlay","popup","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Femberly-popups.1.3.zip",null,"2026-03-15T14:54:45.397Z"]