| 开发者 | njixhost |
|---|---|
| 更新时间 | 2026年10月12日 18:55 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Use [njixhost_confetti onload="false" inview="true"].
For example: [njixhost_confetti style="fireworks" duration="5" particlecount="200"]. Both shortcodes accept style, duration, delay, speed, particlecount, angle, spread, startvelocity, decay, gravity, drift, ticks, scalar, zindex, origin_x, origin_y, and disableforreducedmotion.
Call window.njixcf.start(), window.njixcf.start({ style: 'fireworks', duration: 5 }), or window.njixcf.stop(). Dispatch the njixcf:celebrate document event with options in its detail property. An element with data-confetti-trigger="click" triggers confetti when clicked; supply optional JSON overrides in data-confetti-options. The previous window.wpConfetti API and confetti:celebrate event remain supported for existing integrations. Existing globals owned by another plugin are not overwritten.
Deactivate the earlier copy before activating this plugin. Existing saved settings are copied automatically if this plugin has no settings yet. Replace [confetti] with [njixhost_confetti] and [confetti_button] with [njixhost_confetti_button] in pages, widgets, and templates, keeping their attributes. Generic shortcode names are no longer registered to avoid conflicts. The plugin does not rewrite your content automatically.
Yes, by default. The administrator can configure this behavior in settings.