| 开发者 |
spiderdevs
muaz404 alimran01 |
|---|---|
| 更新时间 | 2026年6月8日 17:55 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<, >, =), and WordPress user roles.<style> blocks, and custom layouts. Your content renders exactly as authored on every remote site.noticepilot folder to the /wp-content/plugins/ directory of your central management site.class-remote-notice-client.php file.includes/ subdirectory).functions.php:your-product-slug with the slug shown on your NoticePilot product card, and your-hub-site.com with the domain of the site running the NoticePilot hub plugin.
SDK configuration options:
api_url — (Required) The full REST API URL to your product's content endpoint.schedule — How often the SDK checks for new campaigns. Accepted values: hourly, twicedaily, or daily. Default: daily.capability — The WordPress capability a user must have to see notices. Default: manage_options.dismiss_duration — How long a dismissed notice remains hidden before it can reappear. Default: WEEK_IN_SECONDS.Most admin-notice plugins manage, dismiss, or suppress notices on a single WordPress installation. NoticePilot serves an entirely different purpose — it is a remote campaign distribution platform for plugin and theme authors. You create and manage campaigns on a central hub site, and a lightweight SDK embedded in your plugin automatically fetches and displays those campaigns across hundreds or thousands of remote installations. It also includes campaign analytics, audience targeting, and scheduling — capabilities not found in typical notice-management plugins.
Yes. Campaign content supports full HTML, including inline styles, <style> blocks, and custom layouts. Your content renders exactly as written on every remote site.
Yes, within its intended use case. Campaign content can only be created by administrators who have the manage_options capability, and all form submissions are protected by WordPress nonce verification. HTML is stored without additional sanitization intentionally, to preserve inline CSS and custom styling. NoticePilot is a developer tool designed for trusted authors — not for end-user-generated content.
No. Analytics events are recorded using fire-and-forget navigator.sendBeacon() calls. Before any data is written to the database, remote site URLs are MD5-hashed server-side. No IP addresses, usernames, cookies, user agents, or other personally identifiable information is ever collected or stored.
Yes. Each campaign supports three independent targeting dimensions:
<, >, =, <=, >=).The notice is hidden for the duration configured via the dismiss_duration SDK option. Dismissals are recorded locally on the remote site in wp_options using a FIFO cleanup strategy that retains only the 20 most recent dismissed campaign IDs. During each fetch cycle, the SDK also automatically prunes stale IDs for campaigns that no longer exist on the hub.
No. NoticePilot does not inject any admin notices into the WordPress dashboard of the site where it is installed. It provides only a management interface under its own admin menu page. Campaign notices are displayed exclusively on remote sites — and only when a plugin or theme author explicitly integrates the SDK.
<style> output in the SDK with the proper wp_add_inline_style() API.<script> output in the SDK with the proper wp_add_inline_script() API.__return_true permission callback to the public analytics REST API route to comply with WP REST API guidelines.