| 开发者 | oandrade |
|---|---|
| 更新时间 | 2026年11月4日 00:39 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
wp_mail.[aplose_newsletter] and optional site-wide exit-intent popup.fr_FR) are included. The site language in Settings → General controls which translation is used.
Try it: subscribe to the Aplose newsletter on https://www.aplose.fr/ (powered by this plugin). Welcome bonus: a 6-step method to create and run your business, with concrete examples.
MGC Premium: WordPress and Mautic are provided on the Ma Gestion Cloud MGC Premium plan (dedicated managed hosting, no extra software licence).
Caching note: if full-page caching is enabled, exclude pages that display the newsletter form so the REST nonce stays valid.
/wp-content/plugins/ or install through the WordPress Plugins screen.[aplose_newsletter] on any page, post or widget.Confirmation emails are sent by WordPress (wp_mail). After the visitor confirms, WordPress calls the Mautic REST API at the base URL you configured, using OAuth2 tokens stored on the server. Catalog/marketing traffic goes only to that Mautic instance — not to the plugin author's servers.
WordPress, using wp_mail. The Mautic contact is created only after the visitor confirms.
Copy the Redirect URI from Aplose Newsletter → Settings. It looks like:
https://your-site.example/wp-admin/admin.php?page=aplose-newsletter&aplose_newsletter_oauth=1
No. The client secret and access/refresh tokens stay in WordPress options on the server. Front-end JavaScript only receives the REST URL and a WordPress REST nonce.
No. Browsers do not allow custom UI on tab close. The exit popup uses mouse leave at the top of the viewport instead.
When the exit-intent popup is enabled, CSS/JS load site-wide so the popup can appear from any page. If you only use the shortcode, disable the popup and assets load only when the shortcode is rendered.
Access tokens are short-lived (often about one hour). The plugin refreshes them automatically: on API calls, and twice a day via a WordPress cron job so the session stays alive even if nobody opens the admin or confirms a signup. Each successful refresh stores the new refresh token when Mautic returns one.
If the refresh token itself expires (for example after many days of inactivity longer than your Mautic api_oauth2_refresh_token_lifetime), automatic refresh is no longer possible. The plugin then marks OAuth as degraded, shows an admin notice, and emails the notification address (or admin_email) at most once per 24 hours. You must click Connect to Mautic again. The cron prevents this in normal use; it cannot reconnect without a human once the refresh token is dead.
For hosted instances, prefer a refresh token lifetime of at least 30 days when you can configure it. The plugin cron (twice daily) keeps the session warm within whatever lifetime your Mautic instance allows.